Method: Assets::Compiler::Plugin::Rack#call
- Defined in:
- lib/assets/compiler/plugin/rack.rb
#call(env) ⇒ (#to_i, {String => String}, Object)
Returns The Rack response.
25 26 27 28 29 30 31 |
# File 'lib/assets/compiler/plugin/rack.rb', line 25 def call(env) if @dwell.nil? || Time.now.to_f > @check_after Assets::Compiler.compile! @check_after = Time.now.to_f + @dwell if @dwell end @app.call(env) end |