-
Notifications
You must be signed in to change notification settings - Fork 470
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
rails 5.1.1 deprecation warning for changed? #1059
Comments
Thanks for pointing this out. I'm struggling to get the same warning locally though. Can you confirm which versions of Rails and Thinking Sphinx you're using? |
This change occured in ActiveRecord/Rails 5.1. Hunting for the deprecation raised in #1059 helped me debug this one (though that issue’s not yet resolved).
I'm getting these deprecation warnings with Thinking Sphinx 3.3 and Rails 5.1.0 |
@avitus are there specific scenarios where this deprecation warning occurs? e.g.
The more detail, the better :) I'm not sure what's provoking this specific warning (about using |
@pat I actually appear to have an example of each of the scenarios you mentioned. In one case it is an after_create callback which updates a field in a model instance based on three other fields. In the second case, I'm essentially creating a type of linked list so when one model instance changes, 'next' and 'prev' pointers in associated models are updated. Not sure whether that helps at all. |
@avitus it may have taken me two months to respond, but that information is definitely helpful. From what I can tell, both from the scenarios you're describing and the testing I've done locally: these warnings only crop up because an |
Closing this, as I think it's more an issue with Rails' deprecation warnings not picking up on nested callbacks. |
This change occured in ActiveRecord/Rails 5.1. Hunting for the deprecation raised in pat#1059 helped me debug this one (though that issue’s not yet resolved).
in
lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb
throws
P.S. thanks for the gem, it has been very useful!
The text was updated successfully, but these errors were encountered: