Class: HelixRuntime::Rails::CheckOutdated

Inherits:
Object
  • Object
show all
Defined in:
lib/helix_runtime/rails/check_outdated.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, project) ⇒ CheckOutdated

Returns a new instance of CheckOutdated.



4
5
6
7
8
# File 'lib/helix_runtime/rails/check_outdated.rb', line 4

def initialize(app, project)
  @app = app
  @project = project
  @last_check = 0
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
# File 'lib/helix_runtime/rails/check_outdated.rb', line 10

def call(env)
  @project.ensure_built!
  @app.call(env)
end