method
find_take
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::FinderMethods
find_take()protected
No documentation available.
# File activerecord/lib/active_record/relation/finder_methods.rb, line 456
def find_take
if loaded?
@records.first
else
@take ||= limit(1).to_a.first
end
end