Commit 56614294 by Pavel Pravosud Committed by Jon Yurek

aliased Attachment#present? to Attachment#file?

parent ad034bae
...@@ -268,6 +268,8 @@ module Paperclip ...@@ -268,6 +268,8 @@ module Paperclip
def file? def file?
!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
......
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