Re: Equivalent to :methods option from ActiveModel::Serializers::JSON

2018-04-18 Thread Marcelo Pereira
My bad, :include does indeed work as well. On Tuesday, April 17, 2018 at 10:06:18 PM UTC+2, Marcelo Pereira wrote: > > I checked the code, and saw that :include doesn't work, but :only does. > Thanks a lot for answering this quickly. > > On Tuesday, April 17, 2018 at 7:26:40 PM UTC+2, Jeremy

Re: Equivalent to :methods option from ActiveModel::Serializers::JSON

2018-04-17 Thread Marcelo Pereira
I checked the code, and saw that :include doesn't work, but :only does. Thanks a lot for answering this quickly. On Tuesday, April 17, 2018 at 7:26:40 PM UTC+2, Jeremy Evans wrote: > > I think you can use the :include option for this, though I'm not sure what > the :methods option does in AMS.

Equivalent to :methods option from ActiveModel::Serializers::JSON

2018-04-17 Thread Jeremy Evans
I think you can use the :include option for this, though I'm not sure what the :methods option does in AMS. -- 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

Equivalent to :methods option from ActiveModel::Serializers::JSON

2018-04-17 Thread Marcelo Pereira
Hello, I'm using the JsonSerializer Plugin in Sequel, but I need to add, to the serialized model, a property that comes from a method call (as opposed to from a database column). Is there a way to do this using this plugin, or should I try to create my own plugin for this? Best -- You