Yes, I alredy did it, but I think it can be useful for others.
On Dec 4, 3:14 am, Jeremy Evans <[EMAIL PROTECTED]> wrote:
> On Dec 3, 3:24 pm, valodzka <[EMAIL PROTECTED]> wrote:
>
> > What do you think about adding method to_hash to Sequel#Model as alias
> > to method values. This can be useful, for example, when you want to
> > create copy or store to yam or do something other that can be done
> > with hash but can't be done with model and you don't known exactly
> > what kind of object you have.
> > # m - sequel::model or hash, we don't now exactly
> > m = m.to_hash
> > # now m is ruby hash
>
> I don't think this should be part of Sequel::Model, but you can easily
> do so in your application with an alias.
>
> Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---