attached 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/attached/attachment.rb +11 -0
  2. metadata +3 -3
@@ -43,6 +43,17 @@ module Attached
43
43
  end
44
44
 
45
45
 
46
+ #
47
+ #
48
+ # Usage:
49
+ #
50
+ # @object.avatar.changed?
51
+
52
+ def changed?
53
+ instance.changed.include? "#{name}_identifier"
54
+ end
55
+
56
+
46
57
  # Usage:
47
58
  #
48
59
  # @object.avatar.assign(...)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Sylvestre
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-07 00:00:00 -05:00
17
+ date: 2010-12-08 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency