aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/preloader
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-06 08:29:40 +0900
committerGitHub <noreply@github.com>2017-11-06 08:29:40 +0900
commitffc1ed9bd54f3cf746f7ddf798e000fc025edef6 (patch)
tree899877d845bcc4a6d0cd0c3b73070801205faa16 /activerecord/lib/active_record/associations/preloader
parente0bef22665f93e88f6b2f3ac6bd55543ed0d6343 (diff)
downloadrails-ffc1ed9bd54f3cf746f7ddf798e000fc025edef6.tar.gz
rails-ffc1ed9bd54f3cf746f7ddf798e000fc025edef6.tar.bz2
rails-ffc1ed9bd54f3cf746f7ddf798e000fc025edef6.zip
`scoping` should respect current class and STI constraint (#29199)
A relation includes `klass`, so it can not be used as it is if current class is different from `current_scope.klass`. It should be created new relation by current class to respect the klass and STI constraint. Fixes #17603. Fixes #23576.
Diffstat (limited to 'activerecord/lib/active_record/associations/preloader')
0 files changed, 0 insertions, 0 deletions