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, #schema_file_path
Instance Method Details
#create_loader_file ⇒ Object
15 16 17 |
# File 'lib/generators/graphql/loader_generator.rb', line 15 def create_loader_file template "loader.erb", "#{[:directory]}/loaders/#{file_path}.rb" end |