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
|
private
|
||||||
|
|
||||||
def image_path_for_size(image_file)
|
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
|
return file
|
||||||
|
rescue ::Sprockets::FileOutsidePaths
|
||||||
|
return super(image_file)
|
||||||
end
|
end
|
||||||
super(image_file)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user