Class: Graphql::Generators::LoaderGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Graphql::Generators::LoaderGenerator
- Includes:
- Core
- Defined in:
- lib/generators/graphql/loader_generator.rb
Overview
Instance Method Summary collapse
Methods included from Core
#create_dir, #create_mutation_root_type, #insert_root_type, #module_namespacing_when_supported, #schema_file_path
Instance Method Details
#create_loader_file ⇒ Object
16 17 18 |
# File 'lib/generators/graphql/loader_generator.rb', line 16 def create_loader_file template "loader.erb", "#{[:directory]}/loaders/#{file_path}.rb" end |