method
each
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Result
each(&block)public
Calls the given block once for each element in row collection, passing row as parameter. Each row is a Hash-like, read only object.
To get real hashes, use .to_a.each.
Returns an Enumerator if no block is given.