aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/reflection.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-09-07 07:33:38 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-09-07 07:43:44 +0900
commit3acc5d6ef7b3f000d0c541b9dc2881a8b7f40f75 (patch)
tree24d85800fdf8b5da44d07fa4fd2a55306914d4c9 /activerecord/lib/active_record/reflection.rb
parent0a94612a979762e1bbeb9cff13322e3f9f721ca3 (diff)
downloadrails-3acc5d6ef7b3f000d0c541b9dc2881a8b7f40f75.tar.gz
rails-3acc5d6ef7b3f000d0c541b9dc2881a8b7f40f75.tar.bz2
rails-3acc5d6ef7b3f000d0c541b9dc2881a8b7f40f75.zip
`has_many :through` with unscope should affect to through scope
The order of scope evaluation should be from through scope to the association's own scope. Otherwise the association's scope cannot affect to through scope. Fixes #13677. Closes #28449.
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 49ddcaecdf..a01eb7b242 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -1077,8 +1077,6 @@ module ActiveRecord
end
class RuntimeReflection < PolymorphicReflection # :nodoc:
- attr_accessor :next
-
def initialize(reflection, association)
@reflection = reflection
@association = association