Hoa Hoang

Results 2 comments of Hoa Hoang

This is how I fix this issue ```` data = ActiveModelSerializers::SerializableResource.new(@customer, serializer: CustomerSerializer, key_transform: :underscore) render json: data.serializable_hash ````

The other way to do that: ``` ActiveModel::Serializer.config.adapter = ActiveModelSerializers::Adapter::JsonApi ActiveModel::Serializer.config.key_transform = :underscore ```