spec/dummy/config/application.rb in locomotivecms-search-0.2.0 vs spec/dummy/config/application.rb in locomotivecms-search-0.2.1
- old
+ new
@@ -7,10 +7,12 @@
require "active_resource/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"
Bundler.require(*Rails.groups)
-require "locomotive/search"
+
+search_engine = SEARCH_ENGINE || 'mongoid'
+require "locomotive/search/#{search_engine}"
module Dummy
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers