On Tuesday, May 22, 2018 at 1:06:01 AM UTC-7, [email protected] wrote: > > Looks like workaround here > http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/JsonSerializer.html > > didn't work anymore. Here is a gist https://pastebin.com/1xdxRB6q > > [1] pry(main)> session_1 = Session.create(start_time: Time.now) > => #<Session @values={:id=>1, :start_time=>2018-05-22 12:04:47 +0400, > :crawlers=>nil}> > [2] pry(main)> session_2 = Session.create(start_time: Time.now) > => #<Session @values={:id=>2, :start_time=>2018-05-22 12:04:49 +0400, > :crawlers=>nil}> > [3] pry(main)> Session.to_json(include: [:running_time]) > => > "[{\"json\":\"{\\\"id\\\":1,\\\"start_time\\\":\\\"2018-05-22T12:04:47.358+04:00\\\",\\\"crawlers\\\":null,\\\"running_time\\\":4.384960448}\"},{\"json\":\"{\\\"id\\\":2,\\\"start_time\\\":\\\"2018-05-22T12:04:49.099+04:00\\\",\\\"crawlers\\\":null,\\\"running_time\\\":2.647039953}\"}]" > > Is there still any way to make it work with active support? >
You'll have to figure out what the new active support is doing that screws things up, and try to reverse the effects. 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 https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
