aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMehmet Emin INAC <mehmetemininac@gmail.com>2019-02-28 11:09:35 +0100
committerMehmet Emin INAC <mehmetemininac@gmail.com>2019-02-28 11:09:35 +0100
commitdedf7a226285e6ce5036619ab23c8994979332a0 (patch)
tree63471d30792af7368c996ec330d828ed2ef29ec1 /activerecord
parent893c647da37189543b2c2d55b07d414b1ba8b0d0 (diff)
downloadrails-dedf7a226285e6ce5036619ab23c8994979332a0.tar.gz
rails-dedf7a226285e6ce5036619ab23c8994979332a0.tar.bz2
rails-dedf7a226285e6ce5036619ab23c8994979332a0.zip
[ci skip] Fix the documentation of ActiveRecord::FinderMethods#find
It's mentioned everywhere as `ActiveRecord::RecordNotFound` so to be coherent with the rest of the documentation I've applied it here. Also doc was saying if the parameter is integer it coerces it which is other way around.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/relation/finder_methods.rb4
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