lib/souls/api/generate/edge.rb in souls-0.44.6 vs lib/souls/api/generate/edge.rb in souls-0.45.0
- old
+ new
@@ -1,7 +1,7 @@
module Souls
module Api::Generate
- def self.edge(class_name: "souls")
+ def self.edge(class_name: "user")
file_dir = "./app/graphql/types/edges"
FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
singularized_class_name = class_name.underscore.singularize
file_path = "./app/graphql/types/edges/#{singularized_class_name}_edge.rb"
File.open(file_path, "w") do |f|