Class: ZapierRestHooks::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ZapierRestHooks::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/zapier_rest_hooks/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_migrations ⇒ Object
15 16 17 18 19 20 |
# File 'lib/generators/zapier_rest_hooks/install_generator.rb', line 15 def copy_migrations require 'rake' Rails.application.load_tasks Rake::Task['railties:install:migrations'].reenable Rake::Task['zapier_rest_hooks:install:migrations'].invoke end |
#mount_in_routes ⇒ Object
11 12 13 |
# File 'lib/generators/zapier_rest_hooks/install_generator.rb', line 11 def mount_in_routes route 'mount ZapierRestHooks::Engine, at: "/hooks"' end |