method
last
v6.0.0 -
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.