diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-02-28 14:17:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-28 14:17:08 +0100 |
commit | 0c5486aa4d789bafe36b200e9c9d4507b3c20c89 (patch) | |
tree | 63471d30792af7368c996ec330d828ed2ef29ec1 /activerecord/lib | |
parent | 893c647da37189543b2c2d55b07d414b1ba8b0d0 (diff) | |
parent | dedf7a226285e6ce5036619ab23c8994979332a0 (diff) | |
download | rails-0c5486aa4d789bafe36b200e9c9d4507b3c20c89.tar.gz rails-0c5486aa4d789bafe36b200e9c9d4507b3c20c89.tar.bz2 rails-0c5486aa4d789bafe36b200e9c9d4507b3c20c89.zip |
Merge pull request #35432 from meinac/minor_doc_fix
[ci skip] Fix the documentation of ActiveRecord::FinderMethods#find
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 91cfc4e849..2b5b77cd56 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -7,8 +7,8 @@ module ActiveRecord 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 |