Class: Infold::ScaffoldGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Infold::ScaffoldGenerator
- Defined in:
- lib/generators/infold/scaffold_generator.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/generators/infold/scaffold_generator.rb', line 7 def perform resource_name = name.camelize.singularize invoke 'infold:model', [ resource_name ] invoke 'infold:decorator', [ resource_name ] invoke 'infold:controller', [ resource_name ] invoke 'infold:search_form', [ resource_name ] invoke 'infold:views', [ resource_name ] end |