Method: Paperclip::Attachment#fingerprint
- Defined in:
- lib/paperclip/attachment.rb
#fingerprint ⇒ Object
Returns the hash of the file as originally assigned, and lives in the <attachment>_fingerprint attribute of the model.
183 184 185 |
# File 'lib/paperclip/attachment.rb', line 183 def fingerprint instance_read(:fingerprint) || (@queued_for_write[:original] && generate_fingerprint(@queued_for_write[:original])) end |