Skip to content

Commit 00550c7

Browse files
committed
Get rid of duplicated @quoted_table_name cache
Since rails#23658 `quote_table_name` returns cached value for all adapters.
1 parent 35fb58b commit 00550c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

activerecord/lib/active_record/model_schema.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,14 @@ def table_name=(value)
276276
end
277277

278278
@table_name = value
279-
@quoted_table_name = nil
280279
@arel_table = nil
281280
@sequence_name = nil unless @explicit_sequence_name
282281
@predicate_builder = nil
283282
end
284283

285284
# Returns a quoted version of the table name, used to construct SQL statements.
286285
def quoted_table_name
287-
@quoted_table_name ||= adapter_class.quote_table_name(table_name)
286+
adapter_class.quote_table_name(table_name)
288287
end
289288

290289
# Computes the table name, (re)sets it internally, and returns it.

0 commit comments

Comments
 (0)