Skip to content

Instantly share code, notes, and snippets.

@levinotik
Created March 22, 2012 16:13
Show Gist options
  • Save levinotik/2159259 to your computer and use it in GitHub Desktop.
Save levinotik/2159259 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :token_authenticatable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me, :authentication_token
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment