Class: Paste::Rails::Updater

Inherits:
Object
  • Object
show all
Defined in:
lib/paste/rails/updater.rb

Instance Method Summary collapse

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
13
14
# File 'lib/paste/rails/updater.rb', line 9

def call env
  Paste::Rails.glue.render_all_erb
  Paste::Rails.glue.rebuild

  @app.call env
end