module ActiveRecord::FinderMethods

def take(limit = nil)

Person.where(["name LIKE '%?'", name]).take
Person.take(5) # returns 5 objects fetched by SELECT * FROM people LIMIT 5
Person.take # returns an object fetched by SELECT * FROM people LIMIT 1

If an order is supplied it will be respected.
order. The order will depend on the database implementation.
Gives a record (or N records if a parameter is supplied) without any implied
def take(limit = nil)
  limit ? limit(limit).to_a : find_take
end