Class: Cantango::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/cantango/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_categoriesObject



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_initializerObject



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_permissionsObject



20
21
22
23
# File 'lib/generators/cantango/install/install_generator.rb', line 20

def copy_permissions
  return unless permissions?
  template "permissions.yml", "config/permissions.yml"
end