Class: Merb::Rack::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/sass/plugin/merb.rb

Instance Method Summary collapse

Instance Method Details

#call_with_sass(env) ⇒ Object Also known as: call



29
30
31
32
33
34
35
36
# File 'lib/sass/plugin/merb.rb', line 29

def call_with_sass(env)
  if !Sass::Plugin.checked_for_updates ||
      Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
    Sass::Plugin.update_stylesheets
  end

  call_without_sass(env)
end