Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

MongoMapper ORM for Devise

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 devise-mongo_mapper.gemspec
README.md

MongoMapper ORM for Devise

Installation

Add MongoMapper and devise-mongo_mapper to your Gemfile

gem 'mongo_mapper'
gem 'devise-mongo_mapper',
  :git    => 'git://github.com/collectiveidea/devise-mongo_mapper

Comment out the current ORM in config/initializers/devise.rb, and add:

require 'devise/orm/mongo_mapper'

Configure your model:

class User
  include MongoMapper::Document
  plugin MongoMapper::Devise
  devise :registerable, :database_authenticatable, :recoverable
end
Something went wrong with that request. Please try again.