maybe the redundant += contributions for user is triggering the RecordNotSaved exception. remove that line and see what happens
This commit is contained in:
parent
a8ab993a31
commit
3aeeac3bfc
1 changed files with 0 additions and 1 deletions
|
@ -23,7 +23,6 @@ class User < ActiveRecord::Base
|
|||
self.points += new_points
|
||||
Pet.transaction do
|
||||
pet.save!
|
||||
self.contributions += new_contributions
|
||||
save!
|
||||
end
|
||||
new_points
|
||||
|
|
Loading…
Reference in a new issue