Class: Paste::Rails::Updater
- Inherits:
-
Object
- Object
- Paste::Rails::Updater
- Defined in:
- lib/paste/rails/updater.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Updater
constructor
A new instance of Updater.
Constructor Details
#initialize(app) ⇒ Updater
Returns a new instance of Updater.
5 6 7 |
# File 'lib/paste/rails/updater.rb', line 5 def initialize app @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 |
# File 'lib/paste/rails/updater.rb', line 9 def call env Paste::Rails.glue.rebuild @app.call env end |