Commit 56614294 by Pavel Pravosud Committed by Jon Yurek

aliased Attachment#present? to Attachment#file?

parent ad034bae
...@@ -269,6 +269,8 @@ module Paperclip ...@@ -269,6 +269,8 @@ module Paperclip
!original_filename.blank? !original_filename.blank?
end end
alias :present? :file?
# Writes the attachment-specific attribute on the instance. For example, # Writes the attachment-specific attribute on the instance. For example,
# instance_write(:file_name, "me.jpg") will write "me.jpg" to the instance's # instance_write(:file_name, "me.jpg") will write "me.jpg" to the instance's
# "avatar_file_name" field (assuming the attachment is called avatar). # "avatar_file_name" field (assuming the attachment is called avatar).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment