class Smartpay::InstallGenerator

Public Instance Methods

install() click to toggle source
# 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