On Dec 4, 5:04 am, valodzka <[EMAIL PROTECTED]> wrote:
> The idea to have one code for hash and for sequel model
> Now we should write:
>   unless m.is_a? Hash
>     x = m
>   else
>     x = m.values
>   end
> With this alias we can just call
>
>   x = m.to_hash

I'm aware of that.  Like I said, if you need it in your application,
alias it yourself.  That's part of the beauty of ruby.

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

Reply via email to