aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-06-29 05:35:34 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-06-29 06:00:17 +0900
commit4aa4a449e0de9d01067f9f74ba1ad47829c2715d (patch)
tree455792562e7e29d29b00b059b13acd0f096791cd /activerecord/lib
parent8c65abe5f804522bcbf0d6f4327e7dfad0603941 (diff)
downloadrails-4aa4a449e0de9d01067f9f74ba1ad47829c2715d.tar.gz
rails-4aa4a449e0de9d01067f9f74ba1ad47829c2715d.tar.bz2
rails-4aa4a449e0de9d01067f9f74ba1ad47829c2715d.zip
Remove unused `aliased_table_name` in `Association`
`aliased_table_name` in `Association` was added at a3502c4. `aliased_table_name` in `JoinDependency` (added at 55854c4) is used, but it looks like that added one in `Association` is never used from the beginning.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations/association.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/associations/association.rb b/activerecord/lib/active_record/associations/association.rb
index 44cf1f8915..1138ae3462 100644
--- a/activerecord/lib/active_record/associations/association.rb
+++ b/activerecord/lib/active_record/associations/association.rb
@@ -30,14 +30,6 @@ module ActiveRecord
reset_scope
end
- # Returns the name of the table of the associated class:
- #
- # post.comments.aliased_table_name # => "comments"
- #
- def aliased_table_name
- klass.table_name
- end
-
# Resets the \loaded flag to +false+ and sets the \target to +nil+.
def reset
@loaded = false