Michał Szota

Results 2 comments of Michał Szota

@oyeanuj Like @yosiat said, you can just calls a method defined in each polymorphic model. ```ruby class MembershipSerializer < Panko::Serializer attributes :id, :identity, :created_at, :updated_at def identity object.identity.serialize( except: [:updated_at,...

@railsfactory-selva According to documentation you can pass hash of data with `context` parameter. https://yosiat.github.io/panko_serializer/attributes.html#method-attributes