class ZapierRestHooks::InstallGenerator

Public Instance Methods

copy_migrations() click to toggle source
# 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() click to toggle source
# File lib/generators/zapier_rest_hooks/install_generator.rb, line 11
def mount_in_routes
  route 'mount ZapierRestHooks::Engine, at: "/hooks"'
end