Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto_index_callback and auto_remove_callback config option #629

Merged
merged 2 commits into from
Mar 22, 2015

Conversation

aaronjensen
Copy link
Contributor

This is a port of #249 which was merged into the 1-3-stable

  • Auto index and auto removal can now be done in the after_commit
    callback in Rails 3, which is a better option in general because the
    transaction will have been finished.
  • Since switching to after_commit might be a breaking change for some
    (especially in tests), it was decided to add a config option that
    defaults to after_save.

* Auto index and auto removal can now be done in the after_commit
  callback in Rails 3, which is a better option in general because the
  transaction will have been finished.
* Since switching to after_commit might be a breaking change for some
  (especially in tests), it was decided to add a config option that
  defaults to after_save.
njakobsen added a commit that referenced this pull request Mar 22, 2015
Add auto_index_callback and auto_remove_callback config option
@njakobsen njakobsen merged commit 16e5f62 into sunspot:master Mar 22, 2015
@aaronjensen
Copy link
Contributor Author

Thanks! I think #534 can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants