Sha256: 9a44d7f60ab039137bd005c10bfa7582a495416e514dddf405bc96899667cb18
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
module Types class MutationType < Types::BaseObject workers = Dir["./app/graphql/mutations/workers/*.rb"].map do |file| file.gsub("./app/graphql/mutations/workers/", "").gsub(".rb", "") end workers.each do |worker| field worker.underscore.to_s.to_sym, mutation: Object.const_get("Mutations::Workers::#{worker.singularize.camelize}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
souls-0.24.2 | apps/worker/app/graphql/types/base/mutation_type.rb |
souls-0.24.1 | apps/worker/app/graphql/types/base/mutation_type.rb |