Class: Generators::Avo::ResourceGenerator
- Inherits:
-
NamedBaseGenerator
- Object
- Rails::Generators::NamedBase
- NamedBaseGenerator
- Generators::Avo::ResourceGenerator
- Defined in:
- lib/generators/avo/resource_generator.rb
Instance Method Summary collapse
Methods included from Concerns::OverrideController
#controllers_list, #override_controller?
Methods included from Concerns::ParentController
Methods inherited from NamedBaseGenerator
Constructor Details
This class inherits a constructor from Generators::Avo::NamedBaseGenerator
Instance Method Details
#create ⇒ Object
20 21 22 23 24 25 |
# File 'lib/generators/avo/resource_generator.rb', line 20 def create return if override_controller? template "resource/resource.tt", "app/avo/resources/#{resource_name}.rb" invoke "avo:controller", [resource_name], end |