1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Disable the Sass plugin in Rails if Rack is loaded in a slightly nicer way.

This commit is contained in:
Nathan Weizenbaum 2009-11-11 20:11:39 -08:00
parent d432b61282
commit fe431c05b9

View file

@ -54,7 +54,7 @@ module Sass
end
if defined?(ActionDispatch::Callbacks.to_prepare)
ActionDispatch::Callbacks.instance_eval {undef :__sass_process}
ActionDispatch::Callbacks.skip_callback(:prepare, :__sass_process)
elsif defined?(ActionController::Base) &&
Haml::Util.has?(:instance_method, ActionController::Base, :sass_old_process)
ActionController::Base.instance_eval {alias_method :process, :sass_old_process}