Skip to content

Commit 95b099a

Browse files
committed
Update doc for quoted_table_name and quoted_primary_key [ci-skip]
`quoted_table_name` and `quoted_primary_key` were used in earlier codebase, but since the SQL construction has been replaced by Arel they are rarely used (only in `InsertAll`) in the current codebase.
1 parent ae0dd06 commit 95b099a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

activerecord/lib/active_record/attribute_methods/primary_key.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def composite_primary_key? # :nodoc:
8787
@composite_primary_key
8888
end
8989

90-
# Returns a quoted version of the primary key name, used to construct
91-
# SQL statements.
90+
# Returns a quoted version of the primary key name.
9291
def quoted_primary_key
9392
adapter_class.quote_column_name(primary_key)
9493
end

activerecord/lib/active_record/model_schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def table_name=(value)
281281
@predicate_builder = nil
282282
end
283283

284-
# Returns a quoted version of the table name, used to construct SQL statements.
284+
# Returns a quoted version of the table name.
285285
def quoted_table_name
286286
adapter_class.quote_table_name(table_name)
287287
end

0 commit comments

Comments
 (0)