lib/attached/attachment.rb in attached-0.3.8 vs lib/attached/attachment.rb in attached-0.3.9
- old
+ new
@@ -114,9 +114,20 @@
# Check if an attachment is present.
#
# Usage:
#
+ # @object.avatar.file?
+
+ def file?
+ not identifier.blank?
+ end
+
+
+ # Check if an attachment is present.
+ #
+ # Usage:
+ #
# @object.avatar.attached?
def attached?
not identifier.blank?
end
\ No newline at end of file