Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 5 lines (5 sloc) 0.28 kb
1 2 3 4 5
if defined?(::Mongoid::Document)
  require 'rails_admin/adapters/mongoid/extension'
  Mongoid::Document.send(:include, RailsAdmin::Adapters::Mongoid::Extension)
  Mongoid::NestedAttributes::ClassMethods.send(:include, RailsAdmin::Adapters::Mongoid::NestedAttributesExtension)
end
Something went wrong with that request. Please try again.