diff options
author | pavel <pavel.rosicky@easy.cz> | 2017-10-27 01:22:16 +0200 |
---|---|---|
committer | pavel <pavel.rosicky@easy.cz> | 2017-10-27 01:22:16 +0200 |
commit | a8966cc4701dcdd982e291d63b27be736c777fc8 (patch) | |
tree | 781edf0a09f991b31bceb523c14cc93f278bcc68 /activerecord/lib | |
parent | 12de5e202ddfca27cccc5965b3048e88718a9ace (diff) | |
download | rails-a8966cc4701dcdd982e291d63b27be736c777fc8.tar.gz rails-a8966cc4701dcdd982e291d63b27be736c777fc8.tar.bz2 rails-a8966cc4701dcdd982e291d63b27be736c777fc8.zip |
delegate scope for
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 2 |
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 |