|
|
|
@ -10,9 +10,11 @@ class User < ActiveRecord::Base
|
|
|
|
|
:validatable, |
|
|
|
|
:confirmable, |
|
|
|
|
:lockable |
|
|
|
|
|
|
|
|
|
validates :first_name, :last_name, :presence => true |
|
|
|
|
|
|
|
|
|
# Setup accessible (or protected) attributes for your model |
|
|
|
|
attr_accessible :email, :password, :password_confirmation, :remember_me |
|
|
|
|
attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name |
|
|
|
|
|
|
|
|
|
has_many :records |
|
|
|
|
end |
|
|
|
|