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
|
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
|
||||||
|
|
Loading…
Reference in a new issue