Working rails-api/active_model_serializers support.