syntax error

This commit is contained in:
Devin Howard 2015-11-07 01:34:08 +08:00
parent 53de063bfc
commit fe0d38ec67

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