method

last

rails latest stable - Class: ActiveRecord::Result
last(n = nil)
public

Returns the last record from the rows collection.