instance method
third
Ruby on Rails 7.0.10
Since v4.1.16Signature
third()
Same as #first except returns only the third record.
Source
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 183
Defined in activerecord/lib/active_record/associations/collection_proxy.rb line 183
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::CollectionProxy