sferik/rails_admin — pull request #1335 by cavneb (2012-09-26 15:49:22+00:00)
Title: Fixed bug where the devise_for was being placed below the mounted engine in routes.rb

When I perform a `rails g rails_admin:install` and go through the process, it places the `devise_for :admins` route below the `mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'`. This will cause a redirect loop. The fix for this is to place the `devise_for` above the `mount` in the routes.rb.

I have modified the order of the generator script to resolve the issue.