What is the recommended way to override the initialize method for a class 
that is a descendant of Sequel::Model?

class User < Sequel::Model

  def initialize(*args)
    ...
  end

end

This results in:

irb(main):002:0> u=User.new(name:'foo')
=> #<User @values=nil>

rather than:

irb(main):001:0> u=User.new(name:'foo')
=> #<User @values={:name=>"foo"}>

Thanks for the help.

-- 
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