Skip to content

Commit 8856150

Browse files
committed
Include metasearch after document
1 parent 492bb6e commit 8856150

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/active_admin/mongoid/document.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ def quote_column_name name
4747
# CLASS METHODS
4848

4949
included do
50-
include MetaSearch::Searches::Mongoid
51-
5250
unless respond_to? :primary_key
5351
class << self
5452
attr_accessor :primary_key
@@ -135,3 +133,6 @@ def reflections *a
135133
end
136134

137135
Mongoid::Document.send :include, ActiveAdmin::Mongoid::Document
136+
Mongoid::Document.send :include, MetaSearch::Searches::Mongoid
137+
138+

0 commit comments

Comments
 (0)