Method: DynamicImage::Model#to_param

Defined in:
lib/dynamic_image/model.rb

#to_paramObject

Includes a timestamp fingerprint in the URL param, so that rendered images can be cached indefinitely.



102
103
104
# File 'lib/dynamic_image/model.rb', line 102

def to_param
  [id, updated_at.utc.to_s(cache_timestamp_format)].join("-")
end