require 'rails/generators/base'

module Errdo

  module Generators

    class InstallGenerator < Rails::Generators::Base

      desc "Creates an errdo initializer and sets the exceptions_app to errdo's"

      def set_exceptions_app
        inject_into_file 'config/application.rb', before: "  end" do
          "\n    config.exceptions_app = Errdo::ExceptionsApp\n\n"
        end
      end

    end

  end

end

Add command to inject changing the exception app
Add command to inject changing the exception app
