未验证 提交 0c5486aa 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #35432 from meinac/minor_doc_fix

[ci skip] Fix the documentation of ActiveRecord::FinderMethods#find
......@@ -7,8 +7,8 @@ module FinderMethods
ONE_AS_ONE = "1 AS one"
# Find by id - This can either be a specific id (1), a list of ids (1, 5, 6), or an array of ids ([5, 6, 10]).
# If one or more records can not be found for the requested ids, then RecordNotFound will be raised. If the primary key
# is an integer, find by id coerces its arguments using +to_i+.
# If one or more records can not be found for the requested ids, then ActiveRecord::RecordNotFound will be raised.
# If the primary key is not an integer, find by id coerces its arguments using +to_i+.
#
# Person.find(1) # returns the object for ID = 1
# Person.find("1") # returns the object for ID = 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册