Class: Generators::Avo::ControllerGenerator
- Inherits:
-
NamedBaseGenerator
- Object
- Rails::Generators::NamedBase
- NamedBaseGenerator
- Generators::Avo::ControllerGenerator
- Includes:
- Generators::Avo::Concerns::OverrideController, Generators::Avo::Concerns::ParentController
- Defined in:
- lib/generators/avo/controller_generator.rb
Instance Method Summary collapse
Methods included from Generators::Avo::Concerns::OverrideController
#controllers_list, #override_controller?
Methods included from Generators::Avo::Concerns::ParentController
Methods inherited from NamedBaseGenerator
Constructor Details
This class inherits a constructor from Generators::Avo::NamedBaseGenerator
Instance Method Details
#create ⇒ Object
15 16 17 18 19 |
# File 'lib/generators/avo/controller_generator.rb', line 15 def create return if override_controller? template "resource/controller.tt", "app/controllers/avo/#{controller_name}.rb" end |