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
Pet.transaction do
pet.save!
self.contributions += new_contributions
save!
end
new_points