Created
November 11, 2009 07:03
-
-
Save nmerouze/231731 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
MongoMapper::Document::ClassMethods.__send__ :include, Devise::Models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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