reload_<association> reader for singular associations.
This patch brings back the functionality of passing true to the
The deprecation mentioned that instead of
This is problematic and there is no easy workaround. I propose to bring
We started to issue deprecation warnings for this since 5.0.0. If this is merged, I think we should backport the patch to
This patch brings back the functionality of passing true to the association proxy. The behavior was deprecated with #20888 and scheduled for removal in Rails 5.1. The deprecation mentioned that instead of `Article.category(true)` one should use `article#reload.category`. Unfortunately the alternative does not expose the same behavior as passing true to the reader did. Specifically reloading the parent record throws unsaved changes and other caches away. Passing true only affected the association. This is problematic and there is no easy workaround. I propose to bring back the old functionality by introducing this new reader method for singular associations.
Introduce `reload_<association>` reader for singular associations. This backport contains modifications to the deprecation warning. This will smoothen the upgrade path for users that were relying on force reloading singular associations.
@matthewd I don't think it's necessary. Honestly now that we have