1
0
Fork 0
forked from OpenNeo/impress

add extra error tracking to saving user, too

This commit is contained in:
Emi Matchu 2011-02-23 16:01:43 -05:00
parent abb29aae4b
commit dfea1a1097

View file

@ -30,7 +30,11 @@ class User < ActiveRecord::Base
raise ActiveRecord::RecordNotSaved, "#{e.message}, #{contribution.inspect}, #{contribution.valid?.inspect}, #{contribution.errors.inspect}"
end
end
save!
begin
save!
rescue ActiveRecord::RecordNotSaved => e
raise ActiveRecord::RecordNotSaved, "#{e.message}, #{self.inspect}, #{self.valid?.inspect}, #{self.errors.inspect}"
end
end
new_points
end