syntax error

This commit is contained in:
Devin Howard 2015-11-07 01:34:08 +08:00 committed by Connor Turland
parent 53d7ccab56
commit 4139c2c84a

View file

@ -77,7 +77,7 @@ class User < ActiveRecord::Base
if code == joinedwithcode
update(generation: 0)
else
update(generation: User.find_by_code(joinedwithcode) + 1
update(generation: User.find_by_code(joinedwithcode) + 1)
end
end