Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding in note of devise integration

  • Loading branch information...
commit 8b436a4ff004342fc02daac68dd05f3a20f50b41 1 parent 55c2a24
@durran durran authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 content/docs/integration.html.haml
View
15 content/docs/integration.html.haml
@@ -3,6 +3,21 @@ title: Integration
author: Durran Jordan
category: docs
---
+.title Devise
+.text
+ %p
+ In order to get <tt>Devise</tt> set up to work with Mongoid, all you will
+ need to do is remove the ActiveRecord require and replace it with the
+ Mongoid one in the <tt>config/initializers/devise.rb</tt>
+
+ %pre
+ %code.language-ruby
+ :preserve
+ # ==> ORM configuration
+ # Load and configure the ORM. Supports :active_record (default),
+ # :mongoid (bson_ext recommended) and :data_mapper (experimental).
+ require "devise/orm/mongoid"
+
.title Passenger
.text
%p
Please sign in to comment.
Something went wrong with that request. Please try again.