Class: Eon::Elements::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Eon::Elements::Generators::InstallGenerator
- Defined in:
- lib/generators/eon/elements/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
8 9 10 |
# File 'lib/generators/eon/elements/install_generator.rb', line 8 def copy_config directory 'config' end |
#copy_models ⇒ Object
17 18 19 |
# File 'lib/generators/eon/elements/install_generator.rb', line 17 def copy_models directory 'models' end |
#copy_scaffold ⇒ Object
21 22 23 |
# File 'lib/generators/eon/elements/install_generator.rb', line 21 def copy_scaffold directory 'scaffold', 'lib/templates/haml/scaffold' end |
#copy_template_files ⇒ Object
12 13 14 15 |
# File 'lib/generators/eon/elements/install_generator.rb', line 12 def copy_template_files copy_file 'controller.rb', 'lib/templates/rails/scaffold_controller/controller.rb' end |