So you like ActiveAdmin, but are using Mongoid. And so far, ActiveAdmin hates on Mongoid because it uses ActiveRecord instead of ActiveModel. What’s a Mongoid to do? Develop your own admin system? As If!
First, Watch this Issue
There’s already a github issue about adding support for other ORMs. Maybe voice your support there.
Then, Monkey Patch!
Add this code to your config/initializers/active_active_for_mongoid.rb
It’s easy to tell what’s going on with the code – ActiveAdmin needs a way to tell what the name of the collection is (otherwise you get the quoted_table_name problem). Mongoid also has some custom ways of sorting. For example,