Method: Sequel::Plugins::EagerEach::DatasetMethods#all

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

#all(&block) ⇒ Object

If eager loading, clone the dataset and set a flag to let #each know not to call #all, to avoid the infinite loop.



53
54
55
56
57
58
59
# File 'lib/sequel/plugins/eager_each.rb', line 53

def all(&block)
  if use_eager_all?
    clone(:all_called=>true).all(&block)
  else
    super
  end
end