Class: CronoTrigger::Railtie::Reloader

Inherits:
Object
  • Object
show all
Defined in:
lib/crono_trigger/railtie.rb

Instance Method Summary collapse

Constructor Details

#initialize(app = ::Rails.application) ⇒ Reloader

Returns a new instance of Reloader.



8
9
10
# File 'lib/crono_trigger/railtie.rb', line 8

def initialize(app = ::Rails.application)
  @app = app
end

Instance Method Details

#callObject



12
13
14
15
16
# File 'lib/crono_trigger/railtie.rb', line 12

def call
  @app.reloader.wrap do
    yield
  end
end