aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/college.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-02-29 14:35:19 -0700
committerSean Griffin <sean@seantheprogrammer.com>2016-02-29 14:50:50 -0700
commitaf2c427c390b87ea20986f1e82b498068800d775 (patch)
treec1a451704b2bf00a2b976ed5e757ac3cf56cb6fa /activerecord/test/models/college.rb
parentddb7be50e8a0946d29fbe66537f845b8369413b7 (diff)
downloadrails-af2c427c390b87ea20986f1e82b498068800d775.tar.gz
rails-af2c427c390b87ea20986f1e82b498068800d775.tar.bz2
rails-af2c427c390b87ea20986f1e82b498068800d775.zip
Respect through association scopes when used with polymorphic
When the `source_type` option is passed to a has_many through, the resulting `Reflection` will be an instance of `PolymorphicReflection` and not `ThroughReflection`, meaning that it will ignore the scopes that it needs to apply from the through reflections. This adds an additional delegation call to remedy this. I've been finding the reflection code completely impenetrable lately, it could use some major love. Fixes #22726
Diffstat (limited to 'activerecord/test/models/college.rb')
0 files changed, 0 insertions, 0 deletions