Method: Paperclip::Attachment#updated_at
- Defined in:
- lib/paperclip/attachment.rb
#updated_at ⇒ Object
Returns the last modified time of the file as originally assigned, and lives in the <attachment>_updated_at attribute of the model.
312 313 314 315 |
# File 'lib/paperclip/attachment.rb', line 312 def updated_at time = instance_read(:updated_at) time && time.to_f.to_i end |