You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: install_generator.rb
    path of file: ./repos/exception_hunter/lib/generators/exception_hunter/install
    
    the code of the file until where you have to start completion: require 'rails/generators/active_record'

module ExceptionHunter
  class InstallGenerator < ActiveRecord::Generators::Base
    source_root File.expand_pat
    
    def setup_routes
      if options[:users]
        gsub_file 'config/routes.rb',
                  "\n  devise_for :#{plural_table_name}, skip: :all",
                  "\n  ExceptionHunter.routes(self)"
      else
        route 'ExceptionHunter.routes(self)'
      end