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