1 class DemandUser < ActiveRecord::Base
4 # Include default devise modules. Others available are:
5 # :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
6 devise :database_authenticatable, :registerable,
7 :recoverable, :rememberable, :trackable, :validatable, :token_authenticatable
9 # Setup accessible (or protected) attributes for your model
10 attr_accessible :email, :password, :password_confirmation, :remember_me
13 self.ensure_authentication_token
18 self.authentication_token = nil