json.partial! partial_name(resource_class, 'detailed'), resource: resource