1
0
Fork 0
forked from OpenNeo/impress

maybe the redundant += contributions for user is triggering the RecordNotSaved exception. remove that line and see what happens

This commit is contained in:
Emi Matchu 2011-02-21 12:02:45 -05:00
parent a8ab993a31
commit 3aeeac3bfc

View file

@ -23,7 +23,6 @@ class User < ActiveRecord::Base
self.points += new_points self.points += new_points
Pet.transaction do Pet.transaction do
pet.save! pet.save!
self.contributions += new_contributions
save! save!
end end
new_points new_points