method
find_first
v3.0.9 -
Show latest stable
- Class:
ActiveRecord::FinderMethods
find_first()protected
No documentation available.
# File activerecord/lib/active_record/relation/finder_methods.rb, line 337
def find_first
if loaded?
@records.first
else
@first ||= limit(1).to_a[0]
end
end