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