Permalink
Browse files

adds a missing LIMIT 1 in #take docs

  • Loading branch information...
1 parent 2304855 commit 87c029e4dff7c15ab6faae3cce5b9aa91cf480f3 @fxn fxn committed Feb 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/finder_methods.rb
@@ -58,7 +58,7 @@ def find_by!(*args)
# order. The order will depend on the database implementation.
# If an order is supplied it will be respected.
#
- # Person.take # returns an object fetched by SELECT * FROM people
+ # Person.take # returns an object fetched by SELECT * FROM people LIMIT 1
# Person.take(5) # returns 5 objects fetched by SELECT * FROM people LIMIT 5
# Person.where(["name LIKE '%?'", name]).take
def take(limit = nil)

0 comments on commit 87c029e

Please sign in to comment.