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
Previously, trying to check whether a `new_record?` (`Post.new`) is
`include?`d in a strict-loaded HABTM association would raise a
`StrictLoadingViolationError` even when the HABTM association is already
loaded.
This commit fixes the issue by always using the `target` if the
association is `loaded?` instead of querying the Through association
(which is only needed when the association is dirty/has newly built
records).
0 commit comments