Class: Cantango::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Cantango::Generators::InstallGenerator
- Defined in:
- lib/generators/cantango/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_categories ⇒ Object
15 16 17 18 |
# File 'lib/generators/cantango/install/install_generator.rb', line 15 def copy_categories return unless categories? template "categories.yml", "config/categories.yml" end |
#copy_initializer ⇒ Object
11 12 13 |
# File 'lib/generators/cantango/install/install_generator.rb', line 11 def copy_initializer template "cantango.rb", "config/initializers/cantango.rb" end |
#copy_permissions ⇒ Object
20 21 22 23 |
# File 'lib/generators/cantango/install/install_generator.rb', line 20 def return unless template "permissions.yml", "config/permissions.yml" end |