From 4aa76ed38a8609ad713e2b39ccb1fa97c5c64682 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sun, 30 Apr 2017 01:00:59 +0900 Subject: Remove unused `association_key` and `table` methods in `Preloader::Association` These are no longer used since b98668decb9712f26118de57623fd15d7d28646d. --- .../lib/active_record/associations/preloader/association.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/activerecord/lib/active_record/associations/preloader/association.rb b/activerecord/lib/active_record/associations/preloader/association.rb index 63ef3f2d8c..4513dce15e 100644 --- a/activerecord/lib/active_record/associations/preloader/association.rb +++ b/activerecord/lib/active_record/associations/preloader/association.rb @@ -31,21 +31,11 @@ module ActiveRecord scope.where(association_key_name => ids) end - def table - klass.arel_table - end - # The name of the key on the associated records def association_key_name raise NotImplementedError end - # This is overridden by HABTM as the condition should be on the foreign_key column in - # the join table - def association_key - klass.arel_attribute(association_key_name, table) - end - # The name of the key on the model which declares the association def owner_key_name raise NotImplementedError -- cgit v1.2.3