Remove the given attributes from the list of columns selected by default. For each attribute given, create an accessor method that allows a lazy lookup of the attribute. Each attribute should be given as a symbol.
# File lib/sequel/plugins/lazy_attributes.rb, line 41 def lazy_attributes(*attrs) set_dataset(dataset.select(*(columns - attrs))) attrs.each{|a| define_lazy_attribute_getter(a)} end
Generated with the Darkfish Rdoc Generator 2.