2013-04-06 01:05:36 -04:00
|
|
|
class User < ActiveRecord::Base
|
|
|
|
# Include default devise modules. Others available are:
|
|
|
|
# :token_authenticatable, :confirmable,
|
|
|
|
# :lockable, :timeoutable and :omniauthable
|
|
|
|
devise :database_authenticatable, :registerable,
|
|
|
|
:recoverable, :rememberable, :trackable, :validatable
|
|
|
|
|
|
|
|
# Setup accessible (or protected) attributes for your model
|
2013-04-13 01:44:25 -04:00
|
|
|
attr_accessible :email, :password, :password_confirmation, :remember_me, :username
|
2013-04-06 01:05:36 -04:00
|
|
|
# attr_accessible :title, :body
|
|
|
|
end
|