Class: Gql::MutationGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Gql::MutationGenerator
- Defined in:
- lib/generators/gql/mutation_generator.rb
Instance Method Summary collapse
- #mutation ⇒ Object
-
#name ⇒ Object
hack to keep NamedBase helpers working.
Instance Method Details
#mutation ⇒ Object
16 17 18 19 |
# File 'lib/generators/gql/mutation_generator.rb', line 16 def mutation file_name = "#{mutation_prefix}_#{singular_name}" template('model_mutation.rb', "app/graphql/mutations/#{class_path.join('/')}/#{file_name.underscore}.rb") end |
#name ⇒ Object
hack to keep NamedBase helpers working
12 13 14 |
# File 'lib/generators/gql/mutation_generator.rb', line 12 def name model_name end |