Class: Templet::ControllerGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Templet::ControllerGenerator
- 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
Methods included from Shared::GrandParentOption
Methods included from Shared::ParentOption
Methods included from Shared::ModelOption
Instance Method Details
#create_controller ⇒ Object
26 27 28 |
# File 'lib/generators/templet/controller/controller_generator.rb', line 26 def create_controller template TEMPLATE_FILE, controller_path end |