2007-11-17 19:55:26 +00:00
|
|
|
unless defined?(Sass::RAILS_LOADED)
|
|
|
|
Sass::RAILS_LOADED = true
|
|
|
|
|
|
|
|
Sass::Plugin.options.merge!(:template_location => RAILS_ROOT + '/public/stylesheets/sass',
|
|
|
|
:css_location => RAILS_ROOT + '/public/stylesheets',
|
|
|
|
:always_check => RAILS_ENV != "production",
|
|
|
|
:full_exception => RAILS_ENV != "production")
|
2008-04-07 23:09:17 -07:00
|
|
|
|
2008-01-07 06:19:23 +00:00
|
|
|
# :stopdoc:
|
|
|
|
module ActionController
|
|
|
|
class Base
|
2007-11-17 19:55:26 +00:00
|
|
|
alias_method :sass_old_process, :process
|
|
|
|
def process(*args)
|
2008-02-11 19:49:16 -08:00
|
|
|
if !Sass::Plugin.checked_for_updates ||
|
|
|
|
Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
|
|
|
|
Sass::Plugin.update_stylesheets
|
|
|
|
end
|
|
|
|
|
2007-11-17 19:55:26 +00:00
|
|
|
sass_old_process(*args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2008-01-07 06:19:23 +00:00
|
|
|
# :startdoc:
|
2007-11-17 19:55:26 +00:00
|
|
|
end
|