Class: ElasticonfRails::Reloader

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticonf_rails/reloader.rb

Instance Method Summary collapse

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