Class: CronoTrigger::Railtie::Reloader
- Inherits:
-
Object
- Object
- CronoTrigger::Railtie::Reloader
- Defined in:
- lib/crono_trigger/railtie.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(app = ::Rails.application) ⇒ Reloader
constructor
A new instance of Reloader.
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
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/crono_trigger/railtie.rb', line 12 def call @app.reloader.wrap do yield end end |