Class: Smartpay::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Smartpay::InstallGenerator
- Defined in:
- lib/generators/smartpay/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/generators/smartpay/install_generator.rb', line 9 def install template "initializer.rb", "config/initializers/smartpay.rb" template "controller.rb", "app/controllers/smartpays_controller.rb" template "assets/stylesheets/demo.css", "app/assets/stylesheets/demo.css" directory "views", "app/views/smartpays" route "resources :smartpays, only: [:index, :create]" end |