Skip to content

Instantly share code, notes, and snippets.

@nz
Created October 14, 2010 01:17
Show Gist options
  • Save nz/625343 to your computer and use it in GitHub Desktop.
Save nz/625343 to your computer and use it in GitHub Desktop.
# If updates have been made, the Sunspot::Rails plugin will issue a commit at the end of a request
# using an after_filter. It checks two config variables first, which you can use to disable
# the automatic commits if you want a different commit policy.
Sunspot::Rails.configuration.auto_commit_after_request = false
Sunspot::Rails.configuration.auto_commit_after_delete_request = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment