Skip to content

Instantly share code, notes, and snippets.

@nmerouze
Created November 11, 2009 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmerouze/231731 to your computer and use it in GitHub Desktop.
Save nmerouze/231731 to your computer and use it in GitHub Desktop.
# ...
MongoMapper::Document::ClassMethods.__send__ :include, Devise::Models
class User
include MongoMapper::Document
devise :authenticatable, :rememberable
key :email, String
key :encrypted_password, String
key :password_salt, String
key :remember_token, String
key :remember_created_at, DateTime
timestamps!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment