Skip to content

Instantly share code, notes, and snippets.

@lancecarlson
Created January 6, 2010 17:43
Show Gist options
  • Select an option

  • Save lancecarlson/270451 to your computer and use it in GitHub Desktop.

Select an option

Save lancecarlson/270451 to your computer and use it in GitHub Desktop.
class User
include DataMapper::Resource
property :username, String
# authenticatable
property :email, String
property :encrypted_password, String
property :password_salt, String
# confirmable
property :confirmation_token, String
property :confirmed_at, DateTime
property :confirmation_sent_at, DateTime
# recoverable
property :reset_password_token, String
# rememberable
property :remember_token, String
property :remember_created_at, DateTime
# trackable
property :sign_in_count, Integer
property :current_sign_in_at, DateTime
property :last_sign_in_at, DateTime
property :current_sign_in_ip, String
property :last_sign_in_ip, String
property :created_at, DateTime
devise :all, :timeoutable, :except => :validatable
#attr_accessible :username, :email, :password, :password_confirmation
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment