Skip to content

Commit

Permalink
[ci skip] Combine complementary AR #find doc lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Dimitriyadi committed Mar 30, 2015
1 parent f9433ef commit 8688167
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions activerecord/lib/active_record/relation/finder_methods.rb
Expand Up @@ -5,7 +5,7 @@ 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 no record can be found for all of the listed ids, then RecordNotFound will be raised. If the primary key
# 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+.
#
# Person.find(1) # returns the object for ID = 1
Expand All @@ -16,8 +16,6 @@ module FinderMethods
# Person.find([1]) # returns an array for the object with ID = 1
# Person.where("administrator = 1").order("created_on DESC").find(1)
#
# <tt>ActiveRecord::RecordNotFound</tt> will be raised if one or more ids are not found.
#
# NOTE: The returned records may not be in the same order as the ids you
# provide since database rows are unordered. You'd need to provide an explicit <tt>order</tt>
# option if you want the results are sorted.
Expand Down

0 comments on commit 8688167

Please sign in to comment.