aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-10-27 09:32:40 +0900
committerGitHub <noreply@github.com>2017-10-27 09:32:40 +0900
commit432b193d3a21540e29b9a2f381ac6d38ae2bfeb2 (patch)
treebe668eb8941890133f94a221c330316ee4c3d565 /activerecord/lib/active_record
parent27265ee57c9420e233c877c7280cb8df53e31e0a (diff)
parenta8966cc4701dcdd982e291d63b27be736c777fc8 (diff)
downloadrails-432b193d3a21540e29b9a2f381ac6d38ae2bfeb2.tar.gz
rails-432b193d3a21540e29b9a2f381ac6d38ae2bfeb2.tar.bz2
rails-432b193d3a21540e29b9a2f381ac6d38ae2bfeb2.zip
Merge pull request #30682 from ahorek/fix_scope_for
delegate scope_for on PolymorphicReflection
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 8877f762b2..c18214a842 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -1002,7 +1002,7 @@ module ActiveRecord
end
class PolymorphicReflection < AbstractReflection # :nodoc:
- delegate :klass, :scope, :plural_name, :type, :get_join_keys, to: :@reflection
+ delegate :klass, :scope, :plural_name, :type, :get_join_keys, :scope_for, to: :@reflection
def initialize(reflection, previous_reflection)
@reflection = reflection