From 50963d7dd251d0478be3d2c5305cec23b7987dd5 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 18 Dec 2010 17:17:58 -0800 Subject: [PATCH] Fix the url helper in rails2 mode. --- doc-src/Gemfile.lock | 2 +- lib/compass/app_integration/rails/actionpack2/urls.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc-src/Gemfile.lock b/doc-src/Gemfile.lock index a1f8d986..727b24dc 100644 --- a/doc-src/Gemfile.lock +++ b/doc-src/Gemfile.lock @@ -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) diff --git a/lib/compass/app_integration/rails/actionpack2/urls.rb b/lib/compass/app_integration/rails/actionpack2/urls.rb index 1847a722..9780f952 100644 --- a/lib/compass/app_integration/rails/actionpack2/urls.rb +++ b/lib/compass/app_integration/rails/actionpack2/urls.rb @@ -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