From eb10566e02e4539ff0bbb976db34a1cbf0028699 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Thu, 3 Nov 2011 15:45:32 -0400 Subject: [PATCH] fixed and issue with Sprokets trying to the the supreme ruler of the file paths! --- lib/compass/app_integration/rails/actionpack31/helpers.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/compass/app_integration/rails/actionpack31/helpers.rb b/lib/compass/app_integration/rails/actionpack31/helpers.rb index 819e4242..f37acdf8 100644 --- a/lib/compass/app_integration/rails/actionpack31/helpers.rb +++ b/lib/compass/app_integration/rails/actionpack31/helpers.rb @@ -9,10 +9,12 @@ module Compass::RailsImageFunctionPatch private def image_path_for_size(image_file) - if file = ::Rails.application.assets.find_asset(image_file) + begin + file = ::Rails.application.assets.find_asset(image_file) return file + rescue ::Sprockets::FileOutsidePaths + return super(image_file) end - super(image_file) end end