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