Class: ActiveRecord::Result::IndexedRow
- Inherits:
-
Object
- Object
- ActiveRecord::Result::IndexedRow
- Defined in:
- lib/active_record/union_relation.rb
Instance Method Summary collapse
-
#each(&block) ⇒ Object
Monkey-patch in the #each method so that we can treat it like a hash.
Instance Method Details
#each(&block) ⇒ Object
Monkey-patch in the #each method so that we can treat it like a hash.
11 12 13 |
# File 'lib/active_record/union_relation.rb', line 11 def each(&block) @column_indexes.each { |column, index| yield column, @row[index] } end |