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:
parent
d432b61282
commit
fe431c05b9
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue