On Thursday, October 11, 2018 at 1:12:25 PM UTC-7, genc wrote:
>
> Hi Jeremy,
>
> Thank you for the help. I really appreciated it.
>
> Is it possible to return this query as a model? How can I reflect this to 
> a model? So it doesn't return just as hash.
>

At the top, change:

  DB[:full_paths]

to:

  ModelClass.from(:full_paths)

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 sequel-talk+unsubscr...@googlegroups.com.
To post to this group, send email to sequel-talk@googlegroups.com.
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