1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/sass/plugin/rails.rb
Nathan Weizenbaum c236b9293c Merge branch 'yard' into yard-sassc
Conflicts:
	lib/sass/engine.rb
	lib/sass/environment.rb
	lib/sass/tree/variable_node.rb
2009-04-29 15:33:14 -07:00

23 lines
853 B
Ruby

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',
:cache_location => RAILS_ROOT + '/tmp/sass-cache',
:always_check => RAILS_ENV != "production",
:full_exception => RAILS_ENV != "production")
module ActionController
class Base
alias_method :sass_old_process, :process
def process(*args)
if !Sass::Plugin.checked_for_updates ||
Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
Sass::Plugin.update_stylesheets
end
sass_old_process(*args)
end
end
end
end