before validations on create
This commit is contained in:
parent
6614285644
commit
2862925e2d
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ class User < Person
|
|||
:recoverable, :rememberable, :trackable, :validatable
|
||||
|
||||
|
||||
before_validation :assign_key
|
||||
before_validation_on_create :assign_key
|
||||
validates_presence_of :profile
|
||||
|
||||
before_validation :do_bad_things
|
||||
|
|
|
|||
Loading…
Reference in a new issue