lib/shimmer/utils/file_helper.rb in shimmer-0.0.39 vs lib/shimmer/utils/file_helper.rb in shimmer-0.0.40
- old
+ new
@@ -21,10 +21,10 @@
height = options[:height]
source = image_file_path(source, width: width, height: height)
options[:loading] ||= :lazy
options[:srcset] = "#{source} 1x, #{image_file_path(attachment, width: width.to_i * 2, height: height ? height.to_i * 2 : nil)} 2x" if options[:width].present?
end
- super source, options
+ super(source, options)
end
def image_file_path(source, width: nil, height: nil)
image_file_proxy(source, width: width, height: height, return_type: :path)
end