Class: RemoteI18n::Filter
- Inherits:
-
Object
- Object
- RemoteI18n::Filter
- Defined in:
- lib/remote_i18n/filter.rb
Instance Method Summary collapse
- #_call(env) ⇒ Object
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(app) ⇒ Filter
Returns a new instance of Filter.
4 5 6 |
# File 'lib/remote_i18n/filter.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#_call(env) ⇒ Object
12 13 14 15 16 |
# File 'lib/remote_i18n/filter.rb', line 12 def _call(env) RemoteI18n.debug 'Compiling all translations' RemoteI18n.compile_all! @app.call env end |
#call(env) ⇒ Object
8 9 10 |
# File 'lib/remote_i18n/filter.rb', line 8 def call(env) dup._call(env) end |