diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-08 02:37:02 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-08 03:42:04 +0900 |
commit | 6a8ce7416d6615a13ee5c4b9f6bcd91cc5adef4d (patch) | |
tree | d6885c7eddc3232aa81dc72ebb12574b5bbe0b7c /actionpack/lib/action_dispatch/system_testing | |
parent | bbacd60048a8efa1777a01292a9392e146a7d885 (diff) | |
download | rails-6a8ce7416d6615a13ee5c4b9f6bcd91cc5adef4d.tar.gz rails-6a8ce7416d6615a13ee5c4b9f6bcd91cc5adef4d.tar.bz2 rails-6a8ce7416d6615a13ee5c4b9f6bcd91cc5adef4d.zip |
Fix `scope_for_create` to do not lose polymorphic associations
This regression was caused at 213796fb due to polymorphic predicates are
combined by `Arel::Nodes::And`. But I'd like to keep that combined
because it would help inverting polymorphic predicates correctly
(e9ba12f7), and we can collect equality nodes regardless of combined by
`Arel::Nodes::And` (`a AND (b AND c) AND d` == `a AND b AND c AND d`).
This change fixes the regression to collect equality nodes in
`Arel::Nodes::And` as well.
Fixes #31338.
Diffstat (limited to 'actionpack/lib/action_dispatch/system_testing')
0 files changed, 0 insertions, 0 deletions