Sha256: 4153a2aa553fa5128ffc9e04235ef3d7b8d81febccc7645e8c04ce13fc200bc1

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

module RemoteI18n
  class Filter

    def initialize(app)
      @app = app
    end

    def call(env)
      dup._call(env)
    end

    def _call(env)
      RemoteI18n.debug 'Compiling all translations'
      RemoteI18n.compile_all!
      @app.call env
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
remote_i18n-0.1.1 lib/remote_i18n/filter.rb
remote_i18n-0.1.0 lib/remote_i18n/filter.rb