MotionModel icon indicating copy to clipboard operation
MotionModel copied to clipboard

after_save only fires on initial, not subsequent saves

Open robj opened this issue 12 years ago • 1 comments

I am using rubygems version of MotionModel

(upgrading to master or rc1.0 I get date_parse errors (format is "2013-07-17T06:54:43Z" )

my after_save(sender) method includes put ''aftersave'

callback fires on initial save

(main)> p = Post.new => Post#87:0xc555430 (main)> p.save ;nil aftersave => nil

callback does not fire on subsequent saves:

(main)> p = Post.last => Post#87:0xc555430 (main)> p.save ;nil => nil

(main)> p = Post.last => Post#87:0xc555430 (main)> p.body = 'xyz' => "xyz" (main)> p.save ;nil => nil

robj avatar Jul 23 '13 05:07 robj

Can you please provide a failing spec as a gist called after_save_issue_72_spec.rb so I can make sure this is regression tested?

sxross avatar Jul 23 '13 16:07 sxross