Sha256: 7227db8577743aa749ddedacb2689c3b926b82706fcb6135d9b287fc297b5e40
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
require 'rails/generators' module CmGraphql module Generators class ListApiGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) def add_graphql @model_name = args.first template "list_type.rb", "app/graphql/types/objects/#{@model_name}_list_type.rb" template "record_type.rb", "app/graphql/types/objects/#{@model_name}_type.rb" template "query_type.rb", "app/graphql/queries/#{@model_name}.rb" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cm-graphql-0.0.1 | lib/generators/cm_graphql/list_api_generator.rb |