orbit-basic/config/initializers/sunspot_mongoid.rb

2 lines
127 B
Ruby

Sunspot.session = Sunspot::Rails.build_session
ActionController::Base.module_eval { include(Sunspot::Rails::RequestLifecycle) }