orbit-basic/config/initializers/sunspot_mongoid.rb

2 lines
127 B
Ruby
Raw Normal View History

2013-12-16 08:08:12 +00:00
Sunspot.session = Sunspot::Rails.build_session
ActionController::Base.module_eval { include(Sunspot::Rails::RequestLifecycle) }