Class: JsonVoorhees::EngineScaffoldGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/json_voorhees/engine_scaffold/engine_scaffold_generator.rb

Instance Method Summary collapse

Instance Method Details

#sprintObject



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