Fix the url helper in rails2 mode.

This commit is contained in:
Chris Eppstein 2010-12-18 17:17:58 -08:00
parent cc8bccfb15
commit 50963d7dd2
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ GIT
PATH
remote: ..
specs:
compass (0.11.alpha.4.ff6c3a0)
compass (0.11.alpha.4.2040be4)
chunky_png (~> 0.10.3)
sass (>= 3.1.0.alpha.50)

View File

@ -1,5 +1,5 @@
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
begin
if only_path.to_bool
@ -11,7 +11,7 @@ module Compass::SassExtensions::Functions::Urls
@controller = nil
end
else
image_url_without_rails_integration(path)
image_url_without_rails_integration(path, only_path, cache_buster)
end
end
alias_method_chain :image_url, :rails_integration