attached 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,6 +112,17 @@ module Attached
112
112
  end
113
113
 
114
114
 
115
+ # Check if an attachment is present.
116
+ #
117
+ # Usage:
118
+ #
119
+ # @object.avatar.file?
120
+
121
+ def file?
122
+ not identifier.blank?
123
+ end
124
+
125
+
115
126
  # Check if an attachment is present.
116
127
  #
117
128
  # Usage:
@@ -1,3 +1,3 @@
1
1
  module Attached
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: attached
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.8
5
+ version: 0.3.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Sylvestre
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-31 00:00:00 -04:00
13
+ date: 2011-06-01 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency