Skip to content

Commit de71ea8

Browse files
authored
Merge pull request rails#53237 from kamipo/update_doc_for_quoted_table_primary_key_name
Update doc for `quoted_table_name` and `quoted_primary_key` [ci-skip]
2 parents ef679c4 + 95b099a commit de71ea8

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)