Class: Templet::ControllerGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Shared::ActionsOption, Shared::GrandParentOption, Shared::ModelFields, Shared::ModelOption, Shared::ParentOption
Defined in:
lib/generators/templet/controller/controller_generator.rb

Constant Summary collapse

TEMPLATE_FILE =
'controller.rb.erb'
SET_MODEL_ACTIONS =
%w(show edit update destroy)

Instance Method Summary collapse

Methods included from Shared::ActionsOption

included

Methods included from Shared::GrandParentOption

included

Methods included from Shared::ParentOption

included

Methods included from Shared::ModelOption

included

Instance Method Details

#create_controllerObject



26
27
28
# File 'lib/generators/templet/controller/controller_generator.rb', line 26

def create_controller
  template TEMPLATE_FILE, controller_path
end