aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/join_dependency.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb
index 8cf1b5d25a..be56d27021 100644
--- a/activerecord/lib/active_record/associations/join_dependency.rb
+++ b/activerecord/lib/active_record/associations/join_dependency.rb
@@ -225,7 +225,7 @@ module ActiveRecord
next
end
- model = seen[ar_parent.object_id][node.base_klass][id]
+ model = seen[ar_parent.object_id][node][id]
if model
construct(model, node, row, seen, model_cache)
@@ -237,7 +237,7 @@ module ActiveRecord
model.readonly!
end
- seen[ar_parent.object_id][node.base_klass][id] = model
+ seen[ar_parent.object_id][node][id] = model
construct(model, node, row, seen, model_cache)
end
end