Skip to content

Commit

Permalink
added back missing legacy method
Browse files Browse the repository at this point in the history
  • Loading branch information
ksylvest committed Jun 1, 2011
1 parent 7b6d1c8 commit 44d0fa1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions lib/attached/attachment.rb
Expand Up @@ -112,6 +112,17 @@ def changed?
end end




# Check if an attachment is present.
#
# Usage:
#
# @object.avatar.file?

def file?
not identifier.blank?
end


# Check if an attachment is present. # Check if an attachment is present.
# #
# Usage: # Usage:
Expand Down
2 changes: 1 addition & 1 deletion lib/attached/version.rb
@@ -1,3 +1,3 @@
module Attached module Attached
VERSION = "0.3.8" VERSION = "0.3.9"
end end

0 comments on commit 44d0fa1

Please sign in to comment.