mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Use Plugin.check_for_updates in plugin/merb.
This commit is contained in:
parent
620acebae4
commit
b7d258353c
1 changed files with 2 additions and 10 deletions
|
@ -27,11 +27,7 @@ unless defined?(Sass::MERB_LOADED)
|
|||
|
||||
class Merb::Rack::Application
|
||||
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
|
||||
|
||||
Sass::Plugin.check_for_updates
|
||||
call_without_sass(env)
|
||||
end
|
||||
alias_method :call_without_sass, :call
|
||||
|
@ -42,11 +38,7 @@ unless defined?(Sass::MERB_LOADED)
|
|||
|
||||
class MerbHandler
|
||||
def process_with_sass(request, response)
|
||||
if !Sass::Plugin.checked_for_updates ||
|
||||
Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
|
||||
Sass::Plugin.update_stylesheets
|
||||
end
|
||||
|
||||
Sass::Plugin.check_for_updates
|
||||
process_without_sass(request, response)
|
||||
end
|
||||
alias_method :process_without_sass, :process
|
||||
|
|
Loading…
Add table
Reference in a new issue