module Sequel::Plugins::EagerEach::DatasetMethods
Public Instance Methods
all(&block)
click to toggle source
columns()
click to toggle source
Don't call all when attempting to load the columns.
Calls superclass method
# File lib/sequel/plugins/eager_each.rb, line 26 def columns if use_eager_all? clone(:all_called=>true).columns else super end end
Private Instance Methods
use_eager_all?()
click to toggle source
Wether to use all when each is called, true when eager loading unless the flag has already been set.
# File lib/sequel/plugins/eager_each.rb, line 58 def use_eager_all? (opts[:eager] || opts[:eager_graph]) && !opts[:all_called] end