On Wed, May 5, 2021 at 12:33 PM Stéphane D'Alu <[email protected]>
wrote:
> Thanks, serialization plugin looks like what I wanted.
>
> I also need to export model value as a hash for further processing, is
> there a way to do that, as Model#values is left untouched by serialization?
> Perhaps should I write a plugin that would do: Hash[columns.map {|c| [c,
> get_column_value(c)]}] ?
>
Something like that may work. You could also do:
values.merge(deserialized_values)
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 view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/CADGZSSf_H-RS%2BTb4x9jxLrGv3qbxa8v6EYkvqkawZve1c%3Dmpjg%40mail.gmail.com.