Class: Kms::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Kms::InstallGenerator
- Defined in:
- lib/generators/kms/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializers ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/kms/install/install_generator.rb', line 6 def copy_initializers @source_paths = nil # reset it for the find_in_source_paths method Kms::InstallGenerator.source_root(File.('../templates', __FILE__)) template 'devise.rb', 'config/initializers/devise.rb' template 'dragonfly.rb', 'config/initializers/dragonfly.rb' template 'carrierwave.rb', 'config/initializers/carrierwave.rb' end |
#insert_engine_routes ⇒ Object
19 20 21 22 23 |
# File 'lib/generators/kms/install/install_generator.rb', line 19 def insert_engine_routes route %( mount Kms::Engine => '/kms', as: 'kms' ) end |
#remove_index_html ⇒ Object
25 26 27 |
# File 'lib/generators/kms/install/install_generator.rb', line 25 def remove_index_html remove_file 'public/index.html' end |