aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-04-30 01:00:59 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-07-04 07:28:44 +0900
commit4aa76ed38a8609ad713e2b39ccb1fa97c5c64682 (patch)
treed4a5c5b64af7ac6a48aa19f0447ddaf89a039db5 /activerecord
parent4b29d9f1db0dd8fc95829cfefed0687242cfc12b (diff)
downloadrails-4aa76ed38a8609ad713e2b39ccb1fa97c5c64682.tar.gz
rails-4aa76ed38a8609ad713e2b39ccb1fa97c5c64682.tar.bz2
rails-4aa76ed38a8609ad713e2b39ccb1fa97c5c64682.zip
Remove unused `association_key` and `table` methods in `Preloader::Association`
These are no longer used since b98668decb9712f26118de57623fd15d7d28646d.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/preloader/association.rb10
1 files changed, 0 insertions, 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