Class: Newebpay::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Newebpay::Generators::InstallGenerator
- Defined in:
- lib/generators/newebpay/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer_file ⇒ Object
10 11 12 |
# File 'lib/generators/newebpay/install_generator.rb', line 10 def copy_initializer_file template 'newebpay_initializer.rb', ::Rails.root.join('config', 'initializers', 'newebpay.rb') end |
#mount_engine ⇒ Object
14 15 16 |
# File 'lib/generators/newebpay/install_generator.rb', line 14 def mount_engine route "mount Newebpay::Engine => '/newebpay'" end |