Skip to content
Snippets Groups Projects
Commit 76c70644 authored by Mayank Singh's avatar Mayank Singh :fox:
Browse files

Add call to graphql_enum_key in replicator.rb

parent 71a63a04
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !125468. Comments created here will be created in the context of that merge request.
......@@ -91,7 +91,7 @@ def self.graphql_mutable?
true
end
# Method to generate a GraphQL enum key based on registery class.
# Method to generate a GraphQL enum key based on registry class.
def self.graphql_enum_key
self.to_s.gsub('Geo::', '').underscore
end
......
......@@ -96,8 +96,8 @@ def self.graphql_field_name
# @return [String] GraphQL mutation registry class used by registry_class_enum.rb. E.g. "PACKAGE_FILE_REGISTRY"
def self.graphql_mutation_registry_class
"#{self.replicable_name}_registry".upcase
end
self.registry_class.graphql_enum_key.upcase
end
# Return the registry related to the replicable resource
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment