Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after_save only fires on initial, not subsequent saves #72

Open
robj opened this issue Jul 23, 2013 · 1 comment
Open

after_save only fires on initial, not subsequent saves #72

robj opened this issue Jul 23, 2013 · 1 comment

Comments

@robj
Copy link
Contributor

robj commented Jul 23, 2013

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

@sxross
Copy link
Owner

sxross commented Jul 23, 2013

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants