Fix the url helper in rails2 mode.
This commit is contained in:
parent
cc8bccfb15
commit
50963d7dd2
@ -14,7 +14,7 @@ GIT
|
|||||||
PATH
|
PATH
|
||||||
remote: ..
|
remote: ..
|
||||||
specs:
|
specs:
|
||||||
compass (0.11.alpha.4.ff6c3a0)
|
compass (0.11.alpha.4.2040be4)
|
||||||
chunky_png (~> 0.10.3)
|
chunky_png (~> 0.10.3)
|
||||||
sass (>= 3.1.0.alpha.50)
|
sass (>= 3.1.0.alpha.50)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module Compass::SassExtensions::Functions::Urls
|
module Compass::SassExtensions::Functions::Urls
|
||||||
def image_url_with_rails_integration(path, only_path = Sass::Script::Bool.new(false))
|
def image_url_with_rails_integration(path, only_path = Sass::Script::Bool.new(false), cache_buster = Sass::Script::Bool.new(true))
|
||||||
if (@controller = Sass::Plugin.rails_controller) && @controller.respond_to?(:request) && @controller.request
|
if (@controller = Sass::Plugin.rails_controller) && @controller.respond_to?(:request) && @controller.request
|
||||||
begin
|
begin
|
||||||
if only_path.to_bool
|
if only_path.to_bool
|
||||||
@ -11,7 +11,7 @@ module Compass::SassExtensions::Functions::Urls
|
|||||||
@controller = nil
|
@controller = nil
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
image_url_without_rails_integration(path)
|
image_url_without_rails_integration(path, only_path, cache_buster)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
alias_method_chain :image_url, :rails_integration
|
alias_method_chain :image_url, :rails_integration
|
||||||
|
Loading…
Reference in New Issue
Block a user