lib/shimmer/utils/file_helper.rb in shimmer-0.0.17 vs lib/shimmer/utils/file_helper.rb in shimmer-0.0.18

- old
+ new

@@ -25,14 +25,14 @@ end super source, options end def image_file_path(source, width: nil, height: nil) - image_file_proxy(source, width: width, height: height).path + image_file_proxy(source, width: width, height: height)&.path end def image_file_url(source, width: nil, height: nil) - image_file_proxy(source, width: width, height: height).url + image_file_proxy(source, width: width, height: height)&.url end def image_file_proxy(source, width: nil, height: nil) return if source.blank? return source if source.is_a?(String)