Class: JsonVoorhees::EngineScaffoldGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- JsonVoorhees::EngineScaffoldGenerator
- Defined in:
- lib/generators/json_voorhees/engine_scaffold/engine_scaffold_generator.rb
Instance Method Summary collapse
Instance Method Details
#sprint ⇒ Object
9 10 11 12 13 |
# File 'lib/generators/json_voorhees/engine_scaffold/engine_scaffold_generator.rb', line 9 def sprint run "rails g json_voorhees:engine_create_controller #{module_name} #{resource_name} #{api_version} #{attributes.join(" ")}" run "rails g json_voorhees:engine_create_serializer #{module_name} #{resource_name} #{api_version} #{attributes.join(" ")}" run "rails g json_voorhees:engine_create_model #{module_name} #{resource_name} #{api_version} #{attributes.join(" ")}" end |