Class: GqlShowGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- GqlShowGenerator
- Defined in:
- lib/generators/gql_show/gql_show_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_gql_file ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/gql_show/gql_show_generator.rb', line 6 def create_gql_file template 'exemple_spec.rb', File.join('spec/graphql/queries/types', "query_type_#{file_name.underscore}_spec.rb") template 'exemple.graphql.rb', File.join('spec/fixtures/graphql/queries', "#{file_name.underscore}.graphql") insert_into_query_type end |