Method: Sequel::Plugins::EagerEach::DatasetMethods#each

Defined in:
lib/sequel/plugins/eager_each.rb

#each(&block) ⇒ Object

Call #all instead of #each if eager loading, unless #each is being called by #all.



43
44
45
46
47
48
49
# File 'lib/sequel/plugins/eager_each.rb', line 43

def each(&block)
  if use_eager_all?
    all(&block)
  else
    super
  end
end