Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
MongoMapper ORM for Devise
Ruby
Branch: master
Pull request Compare This branch is 2 commits ahead, 1 commit behind collectiveidea:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
devise-mongo_mapper.gemspec

README.md

MongoMapper ORM for Devise

Installation

Use the rails3 branch of MongoMapper, and add devise-mongo_mapper to your Gemfile

gem 'mongo_mapper',
  :git    => 'git://github.com/jnunemaker/mongomapper',
  :branch => 'rails3'
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.