lib/locomotive/search/mongoid.rb in locomotivecms-search-0.2.0 vs lib/locomotive/search/mongoid.rb in locomotivecms-search-0.2.1
- old
+ new
@@ -1,2 +1,8 @@
-require 'activesearch/mongoid'
-Locomotive::Search::Extension = ActiveSearch::Mongoid
+require 'locomotive/search'
+
+class Locomotive::Search::Engine
+ initializer "locomotive.search.extension", before: "locomotive.search.concerns" do
+ require 'activesearch/mongoid'
+ Locomotive::Search::Extension = ActiveSearch::Mongoid
+ end
+end
\ No newline at end of file