Skip to content

Commit

Permalink
aliased Attachment#present? to Attachment#file?
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Pravosud authored and Jon Yurek committed Apr 20, 2011
1 parent ad034ba commit 5661429
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/paperclip/attachment.rb
Expand Up @@ -268,6 +268,8 @@ def reprocess!(*style_args)
def file?
!original_filename.blank?
end

alias :present? :file?

# Writes the attachment-specific attribute on the instance. For example,
# instance_write(:file_name, "me.jpg") will write "me.jpg" to the instance's
Expand Down

0 comments on commit 5661429

Please sign in to comment.