instance method
find_take
Ruby on Rails 6.1.7.10
Since v4.0.13 PrivateSignature
find_take()
No documentation comment.
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 520
def find_take
if loaded?
records.first
else
@take ||= limit(1).records.first
end
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 520
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods