Module Sunspot::Rails::RequestLifecycle

  1. lib/sunspot/rails/request_lifecycle.rb

This module adds an after_filter to ActionController::Base that commits the Sunspot session if any documents have been added, changed, or removed in the course of the request.