I think this is what you’re looking for:
ActiveModel::ArraySerializer.new(Funding.all, each_serializer: FundingSerializer).to_json
See this Thoughtbot blog post for an example.
I think this is what you’re looking for:
ActiveModel::ArraySerializer.new(Funding.all, each_serializer: FundingSerializer).to_json
See this Thoughtbot blog post for an example.