dont cache in custom
This commit is contained in:
parent
ec90cf515f
commit
3e5b3cfbf6
@ -45,10 +45,9 @@ module Compass::SassExtensions::Functions::ImageSize
|
|||||||
private
|
private
|
||||||
|
|
||||||
def image_demensions(image_file)
|
def image_demensions(image_file)
|
||||||
options[:custom] ||= {}
|
options[:compass] ||= {}
|
||||||
options[:custom][:compass] ||= {}
|
options[:compass][:image_dimensions] ||= {}
|
||||||
options[:custom][:compass][:image_dimensions] ||= {}
|
options[:compass][:image_dimensions][image_file.value] = ImageProperties.new(image_path(image_file.value)).size
|
||||||
options[:custom][:compass][:image_dimensions][image_file.value] = ImageProperties.new(image_path(image_file.value)).size
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def image_path(image_file)
|
def image_path(image_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user