attached 0.0.5 → 0.0.6
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.
- 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)
|