Class: Generators::Avo::ControllerGenerator

Inherits:
NamedBaseGenerator
  • Object
show all
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

#parent_controller

Methods inherited from NamedBaseGenerator

#initialize

Constructor Details

This class inherits a constructor from Generators::Avo::NamedBaseGenerator

Instance Method Details

#createObject



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