lib/paperclip/interpolations.rb in mbailey-paperclip-2.3.2.1 vs lib/paperclip/interpolations.rb in mbailey-paperclip-2.3.3
- old
+ new
@@ -86,12 +86,12 @@
# Returns the id of the instance.
def id attachment, style_name
attachment.instance.id
end
- # Returns the file hash of the instance.
- def file_hash attachment, style_name
- attachment.file_hash
+ # Returns the fingerprint of the instance.
+ def fingerprint attachment, style_name
+ attachment.fingerprint
end
# Returns the id of the instance in a split path form. e.g. returns
# 000/001/234 for an id of 1234.
def id_partition attachment, style_name