method
last
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Result
last()public
Returns the last record from the rows collection. If the rows collection is empty, returns nil.
last()Returns the last record from the rows collection. If the rows collection is empty, returns nil.