Assign key before validation

This commit is contained in:
Raphael 2010-07-14 11:25:34 -07:00
parent 335f202e2b
commit a7ba1d8920

View file

@ -4,7 +4,7 @@ class User < Person
:recoverable, :rememberable, :trackable, :validatable
before_create :assign_key
before_validation :assign_key
validates_presence_of :profile
before_validation :do_bad_things