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/boring_generators/lib/generators/boring/pundit/install
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Boring
  module Pundit
    class InstallGenerator < Rails::Generators::Base
      desc "Adds pundit to the application"

      class_option :skip_ensuring_policies, type: :boolean, aliases: "-s",
             
    
      def rescue_from_not_authorized
        return if options[:skip_rescue]

        say "Adding rescue from Pundit::NotAuthorizedError", :green

        after = if File.read('app/controllers/application_controller.rb') =~ (/:verify_authorized/)
                  "after_action :verify_authorized\n"
                else
                  "include Pundit\n"
                end