Attempt to recreate active_model_serializers#456.