lib/dynamic_image/model.rb in dynamic_image-2.1.4 vs lib/dynamic_image/model.rb in dynamic_image-2.1.5
- old
+ new
@@ -98,11 +98,12 @@
end
# Includes a timestamp fingerprint in the URL param, so
# that rendered images can be cached indefinitely.
def to_param
- [id, updated_at.utc.to_s(cache_timestamp_format)].join("-")
+ [id, updated_at.utc.to_formatted_s(cache_timestamp_format)].join("-")
end
+
private
def read_image_metadata
metadata = DynamicImage::Metadata.new(data)