fixed and issue with Sprokets trying to the the supreme ruler of the file paths!
This commit is contained in:
parent
044855e04d
commit
eb10566e02
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user