Skip to content
Snippets Groups Projects

Geo: Add value transformation logic method

All threads resolved!
Files
4
@@ -13,7 +13,8 @@ class RegistryClassEnum < BaseEnum
::Geo::Secondary::RegistryConsistencyWorker::REGISTRY_CLASSES.each do |registry_class|
next unless registry_class.graphql_mutable?
value registry_class.to_s.gsub('Geo::', '').underscore.upcase,
# Disabling RuboCop: `graphql_enum_key` adheres to the uppercase rule of Graphql/EnumValues.
value registry_class.graphql_enum_key, # rubocop:disable Graphql/EnumValues
value: registry_class.to_s,
description: "#{registry_class} registry class"
end
Loading