Hi, i'm trying to render a collection with ActiveModel::ArraySerializer but this raises the error: uninitialized constant ActiveModel::ArraySerializer
The version of AMS is 0.10.0
render json: { meta: { success: true, locale: I18n.locale }, collection: ActiveModel::ArraySerializer.new(@collection, each_serializer: MyCollectionSerializer)}, status: 200
Problem solved chaging from _ActiveModel::ArraySerializer.new_ to ActiveModel::Serializer::CollectionSerializer.new
Most helpful comment
Problem solved chaging from _ActiveModel::ArraySerializer.new_ to ActiveModel::Serializer::CollectionSerializer.new