Skip to content

Commit 1d98bc5

Browse files
committed
Drop unused table_name alias from Arel::Table
1 parent 524fed6 commit 1d98bc5

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

activerecord/lib/arel/table.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ class << self; attr_accessor :engine; end
1010

1111
attr_accessor :name, :table_alias
1212

13-
# TableAlias and Table both have a #table_name which is the name of the underlying table
14-
alias :table_name :name
15-
1613
def initialize(name, as: nil, klass: nil, type_caster: klass&.type_caster)
1714
@name =
1815
case name

activerecord/test/cases/arel/table_test.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ class TableTest < Arel::Spec
186186
_(@relation.name).must_equal "users"
187187
end
188188

189-
it "should have a table name" do
190-
_(@relation.table_name).must_equal "users"
191-
end
192-
193189
describe "[]" do
194190
describe "when given a Symbol" do
195191
it "manufactures an attribute if the symbol names an attribute within the relation" do

0 commit comments

Comments
 (0)