2012-08-25 04:14:51 +00:00
|
|
|
class User < ActiveRecord::Base
|
2012-09-02 11:12:26 +00:00
|
|
|
# Include default devise modules. Others available are:
|
|
|
|
# :token_authenticatable, :confirmable,
|
|
|
|
# :lockable, :timeoutable and :omniauthable
|
2012-10-14 12:46:19 +00:00
|
|
|
devise :database_authenticatable, :registerable,
|
2012-09-02 11:12:26 +00:00
|
|
|
:recoverable, :rememberable, :trackable, :validatable
|
|
|
|
|
|
|
|
# Setup accessible (or protected) attributes for your model
|
2012-10-14 12:46:19 +00:00
|
|
|
attr_accessible :email, :password, :password_confirmation, :remember_me, :name, :admin
|
2012-08-25 04:14:51 +00:00
|
|
|
|
2012-10-14 12:46:19 +00:00
|
|
|
has_many :cards
|
2012-08-25 04:14:51 +00:00
|
|
|
end
|