Class: ElasticonfRails::Reloader
- Inherits:
-
Object
- Object
- ElasticonfRails::Reloader
- Defined in:
- lib/elasticonf_rails/reloader.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Reloader
constructor
A new instance of Reloader.
Constructor Details
#initialize(app) ⇒ Reloader
Returns a new instance of Reloader.
3 4 5 |
# File 'lib/elasticonf_rails/reloader.rb', line 3 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 |
# File 'lib/elasticonf_rails/reloader.rb', line 7 def call(env) Elasticonf.reload! @app.call env end |