You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4ed9797 removed support for preloading instance-dependent associations.
While it is understandable that they might have been a source of confusion, associations such as the one presented in #15024 which this addressed, can be properly preloaded in this manner:
This code results in an association that can both be called on an instance as well as preloaded in another query. Removing this feature actually breaks working code.
It was already removed and we don't plan to add it back. Even that you can make it work it still have to check if you are in a instance. Also to make it work you are relying in private API of the framework arel_table.
4ed9797 removed support for preloading instance-dependent associations.
While it is understandable that they might have been a source of confusion, associations such as the one presented in #15024 which this addressed, can be properly preloaded in this manner:
This code results in an association that can both be called on an instance as well as preloaded in another query. Removing this feature actually breaks working code.
What do you think @senny, @rafaelfranca?
The text was updated successfully, but these errors were encountered: