MotionModel
MotionModel copied to clipboard
after_save only fires on initial, not subsequent saves
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
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?