Class: Graphiti::ResourceGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Graphiti::ResourceGenerator
- Includes:
- GeneratorMixin
- Defined in:
- lib/generators/graphiti/resource_generator.rb
Defined Under Namespace
Classes: ModelAction
Instance Method Summary collapse
Methods included from GeneratorMixin
#actions, #actions?, #api_namespace, #graphiti_config, #id_or_rawid, #prompt, #sort_raw_ids, #sort_raw_ids_descending, #update_config!
Instance Method Details
#generate_all ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/generators/graphiti/resource_generator.rb', line 36 def generate_all generate_model generate_controller generate_application_resource unless application_resource_defined? generate_route generate_resource generate_resource_specs generate_api_specs end |