attached 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/attached.rb +2 -2
- metadata +2 -2
data/lib/attached.rb
CHANGED
@@ -49,8 +49,8 @@ module Attached
|
|
49
49
|
initialize_attached_options unless attached_options
|
50
50
|
attached_options[name] = options
|
51
51
|
|
52
|
-
|
53
|
-
|
52
|
+
before_save :save_attached
|
53
|
+
before_destroy :destroy_attached
|
54
54
|
|
55
55
|
define_method name do
|
56
56
|
attachment_for(name)
|