On Saturday, May 10, 2014 6:58:12 AM UTC-7, Nicolas Goy wrote:
>
> I tried to play with the Sequel.qualify methods without success to
> reproduce the following:
>
>
> # Is there a way to make this line nicer with sequel built in methods?
> fields = %w(type name).map {|c| "fruits__#{c}".to_sym } + %w(weight
> name).map {|c| "vegetables__#{c}".to_sym }
>
fields = %w(type name).map{|c| Sequel.qualify(:fruits, c)} + %w(weight
name).map{|c| Sequel.qualify(:vegetables, c)}
Thanks,
Jeremy
--
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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.