Permalink
Browse files

Devise is always present

  • Loading branch information...
1 parent 83183a6 commit 6d35ff2615c829235b501973674ecfb3fceae598 @elia elia committed Jun 17, 2013
Showing with 2 additions and 9 deletions.
  1. +0 −4 README.md
  2. +2 −5 lib/active_admin/mongoid.rb
View
@@ -14,11 +14,7 @@ Add the following gems to your application's Gemfile:
```ruby
gem 'activeadmin-mongoid'
-gem 'devise'
```
-Devise is the gem used to managed admin authentication.
-The gem is required to force itself ORM configuration.
-Else the gem will try to use by default ActiveRecord ORM.
You can safely remove the following lines, since are already activeadmin-mongoid dependencies:
@@ -1,8 +1,9 @@
require 'active_admin/mongoid/version'
# require 'active_admin/mongoid/engine'
+require 'active_admin'
+require 'devise'
require 'rails'
require 'mongoid'
-require 'active_admin'
require 'active_admin/mongoid/comments'
require 'active_admin/mongoid/adaptor'
@@ -12,10 +13,6 @@
require 'active_admin/mongoid/helpers/collection'
require 'active_admin/mongoid/criteria'
-# # AA seems to add load_paths after the backend is already loaded.
-# I18n.backend.reload!
-
-
# module ActiveAdmin
# module Mongoid
# end

0 comments on commit 6d35ff2

Please sign in to comment.