Module: Arel::Relation::Enumerable

Includes:
Enumerable
Included in:
Arel::Relation
Defined in:
lib/arel/algebra/relations/relation.rb

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object



20
21
22
# File 'lib/arel/algebra/relations/relation.rb', line 20

def each(&block)
  session.read(self).each(&block)
end

#firstObject



24
25
26
# File 'lib/arel/algebra/relations/relation.rb', line 24

def first
  session.read(self).first
end