From 44d0fa17e5165dec33079ba849b4015c443036d9 Mon Sep 17 00:00:00 2001 From: Kevin Sylvestre Date: Wed, 1 Jun 2011 02:17:17 -0400 Subject: [PATCH] added back missing legacy method --- lib/attached/attachment.rb | 11 +++++++++++ lib/attached/version.rb | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/attached/attachment.rb b/lib/attached/attachment.rb index 56b4f4d..a6c455d 100644 --- a/lib/attached/attachment.rb +++ b/lib/attached/attachment.rb @@ -112,6 +112,17 @@ def changed? end + # Check if an attachment is present. + # + # Usage: + # + # @object.avatar.file? + + def file? + not identifier.blank? + end + + # Check if an attachment is present. # # Usage: diff --git a/lib/attached/version.rb b/lib/attached/version.rb index 7bd3b30..05cfc40 100644 --- a/lib/attached/version.rb +++ b/lib/attached/version.rb @@ -1,3 +1,3 @@ module Attached - VERSION = "0.3.8" + VERSION = "0.3.9" end