Sha256: c4a209ce4dec63f670530867160c7cfb5258da3fd6acc8b85eb475ed371c9032

Contents?: true

Size: 236 Bytes

Versions: 114

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

114 entries across 100 versions & 25 rubygems

Version Path
i18n-1.6.0 lib/i18n/middleware.rb
i18n-1.5.3 lib/i18n/middleware.rb
i18n-1.5.2 lib/i18n/middleware.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/i18n-1.1.1/lib/i18n/middleware.rb
i18n-1.5.1 lib/i18n/middleware.rb
i18n-1.4.0 lib/i18n/middleware.rb
nullifyable-0.1.0 vendor/bundle/gems/i18n-1.3.0/lib/i18n/middleware.rb
i18n-1.3.0 lib/i18n/middleware.rb
i18n-1.2.0 lib/i18n/middleware.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/i18n-1.1.1/lib/i18n/middleware.rb
i18n-1.1.1 lib/i18n/middleware.rb
i18n-1.1.0 lib/i18n/middleware.rb
monero_wallet_gen-0.1.0 vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/middleware.rb
i18n-1.0.1 lib/i18n/middleware.rb