aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/system_testing
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-12-08 02:37:02 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-12-08 03:42:04 +0900
commit6a8ce7416d6615a13ee5c4b9f6bcd91cc5adef4d (patch)
treed6885c7eddc3232aa81dc72ebb12574b5bbe0b7c /actionpack/lib/action_dispatch/system_testing
parentbbacd60048a8efa1777a01292a9392e146a7d885 (diff)
downloadrails-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