instance method
find_take_with_limit
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
find_take_with_limit(limit)
No documentation comment.
Parameters
-
limitreq
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 503
def find_take_with_limit(limit)
if loaded?
records.take(limit)
else
limit(limit).to_a
end
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 503
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods