Class: Paggi::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Paggi::Generators::InstallGenerator
- Defined in:
- lib/generators/paggi/install/install_generator.rb
Overview
Configuration files generator
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
7 8 9 10 11 |
# File 'lib/generators/paggi/install/install_generator.rb', line 7 def self.source_root @source_root ||= File.( File.join(File.dirname(__FILE__), 'templates') ) end |
Instance Method Details
#copy_config_file ⇒ Object
13 14 15 16 |
# File 'lib/generators/paggi/install/install_generator.rb', line 13 def copy_config_file template 'config/paggi.yml' template 'config/initializers/paggi.rb' end |