fixed and issue with Sprokets trying to the the supreme ruler of the file paths!

This commit is contained in:
Scott Davis 2011-11-03 15:45:32 -04:00
parent 044855e04d
commit eb10566e02

View File

@ -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