middleware.rb 205 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 module I18n class Middleware def initialize(app) @app = app end def call(env) @app.call(env) ensure Thread.current[:i18n_config] = I18n::Config.new end end end