instance method
third_to_last
Ruby on Rails 5.0.7.2
Since v5.0.7.2Signature
third_to_last(*args)
Same as #first except returns only the third-to-last record.
Parameters
-
argsrest
Source
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 200
def third_to_last(*args)
@association.third_to_last(*args)
end
Defined in activerecord/lib/active_record/associations/collection_proxy.rb line 200
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::CollectionProxy