Sha256: abe10b05139df6ba11ad8daee4fcece317638bdf01d7539c08b30bf09b1ece81
Contents?: true
Size: 518 Bytes
Versions: 15
Compression:
Stored size: 518 Bytes
Contents
module Sunspot #:nodoc: module Rails #:nodoc: # # 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. # module RequestLifecycle class <<self def included(base) #:nodoc: base.after_filter do Sunspot.commit_if_dirty if Sunspot::Rails.configuration.auto_commit_after_request? end end end end end end
Version data entries
15 entries across 15 versions & 9 rubygems