aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/reflection.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-10-19 14:56:59 +0100
committerJon Leighton <j@jonathanleighton.com>2010-10-19 14:56:59 +0100
commit9ff5fdeda99b3d8c5148d4c40956842518d1c788 (patch)
treecd7a1a16b3480837a51a48ced193ffde90725f24 /activerecord/lib/active_record/reflection.rb
parent01838636c6136d9a649ace71db61bb7990f9bd82 (diff)
downloadrails-9ff5fdeda99b3d8c5148d4c40956842518d1c788.tar.gz
rails-9ff5fdeda99b3d8c5148d4c40956842518d1c788.tar.bz2
rails-9ff5fdeda99b3d8c5148d4c40956842518d1c788.zip
Remove unused methods
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
-rw-r--r--activerecord/lib/active_record/reflection.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index a46597e497..6078191773 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -266,9 +266,6 @@ module ActiveRecord
[Array.wrap(options[:conditions])]
end
- def through_reflection_primary_key_name
- end
-
def source_reflection
nil
end
@@ -489,14 +486,6 @@ module ActiveRecord
check_validity_of_inverse!
end
- def through_reflection_primary_key
- through_reflection.belongs_to? ? through_reflection.klass.primary_key : through_reflection.primary_key_name
- end
-
- def through_reflection_primary_key_name
- through_reflection.primary_key_name if through_reflection.belongs_to?
- end
-
private
def derive_class_name
# get the class_name of the belongs_to association of the through reflection