Method: DynamicImage::Model#to_param
- Defined in:
- lib/dynamic_image/model.rb
#to_param ⇒ Object
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()].join("-") end |