Class: KmsShop::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- KmsShop::InstallGenerator
- Defined in:
- lib/generators/kms_shop/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#insert_engine_routes ⇒ Object
5 6 7 8 9 |
# File 'lib/generators/kms_shop/install/install_generator.rb', line 5 def insert_engine_routes route %( mount Kms::Shop::Engine => '/kms' ) end |
#insert_javascript ⇒ Object
11 12 13 |
# File 'lib/generators/kms_shop/install/install_generator.rb', line 11 def insert_javascript append_file "app/assets/javascripts/application.js", "//= require kms_shop/application\n" end |