Perfect, exactly what I was looking for, thanks!
On Tuesday, March 17, 2015 at 3:22:55 PM UTC-7, Jeremy Evans wrote:
>
> On Tuesday, March 17, 2015 at 2:17:33 PM UTC-7, Jon Mattingly wrote:
>>
>> So I wrote this and then realized I didn't explain it clearly enough and
>> couldn't edit it, sorry. I know about the to_hash method, but if I'm
>> returning multiple objects (in an array) I'd like to return the hashed
>> representation of each of them. I was able to do it by doing
>> sequel_results.map {|x| x.to_hash} but I didn't know if there was a
>> convenience method for that so I didn't have to write the map part every
>> time. Something along the lines of object.all.hashed_results
>>
>
> dataset.naked.all may do what you want.
>
> 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.