diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-02-29 14:35:19 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-02-29 14:50:50 -0700 |
commit | af2c427c390b87ea20986f1e82b498068800d775 (patch) | |
tree | c1a451704b2bf00a2b976ed5e757ac3cf56cb6fa /activerecord/test/fixtures/zines.yml | |
parent | ddb7be50e8a0946d29fbe66537f845b8369413b7 (diff) | |
download | rails-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/fixtures/zines.yml')
0 files changed, 0 insertions, 0 deletions