method

each

rails latest stable - Class: ActiveRecord::Result
each(&block)
public

Calls the given block once for each element in row collection, passing row as parameter.

Returns an Enumerator if no block is given.