attached 0.0.5 → 0.0.6

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.rb +2 -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
- after_save :save_attached
53
- after_destroy :destroy_attached
52
+ before_save :save_attached
53
+ before_destroy :destroy_attached
54
54
 
55
55
  define_method name do
56
56
  attachment_for(name)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Sylvestre