method
first_nth_or_last
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionAssociation
first_nth_or_last(type, *args)private
Fetches the first/last using SQL if possible, otherwise from the target array.
first_nth_or_last(type, *args)Fetches the first/last using SQL if possible, otherwise from the target array.