If you do use dataset_module with a block I don't think it is actually 
including the contents.

Looking at the function:

def dataset_module(mod = nil)
  if mod
    raise Error, "can't provide both argument and block to 
Model.dataset_module" if block_given?
    dataset_extend(mod)
    mod
  else
    @dataset_module ||= dataset_module_class.new(self)
    @dataset_module.module_eval(&Proc.new) if block_given?
    dataset_extend(@dataset_module)
    @dataset_module
  end
end


When does the block actually get yielded? I don't think &Proc.new quite 
does it...

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to