diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-12 20:15:33 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-12 20:24:39 +0900 |
commit | 9ff2860e1ca59c3dc3b6218c7037414c2fccb2c6 (patch) | |
tree | 225ea7b3e5bf9ae4baa4b6dab6af2d9f09a57398 | |
parent | 98360a96cc1e0bb6ab9eb31f421a36439e66eefc (diff) | |
download | rails-9ff2860e1ca59c3dc3b6218c7037414c2fccb2c6.tar.gz rails-9ff2860e1ca59c3dc3b6218c7037414c2fccb2c6.tar.bz2 rails-9ff2860e1ca59c3dc3b6218c7037414c2fccb2c6.zip |
Remove duplicated `table_name`
It can use `AbstractReflection#table_name` simply.
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index d044f9dfe8..d2b85e168b 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -1073,10 +1073,6 @@ module ActiveRecord @reflection.scope end - def table_name - @reflection.table_name - end - def plural_name @reflection.plural_name end @@ -1112,10 +1108,6 @@ module ActiveRecord @association.klass end - def table_name - klass.table_name - end - def constraints @reflection.constraints end |