# frozen_string_literal: true

class ApplicationController < ActionController::Base
    include Pundit::Authorization
    before_action :authenticate_user!

    def after_sign_in_path_for(resource)
        stored_location_for(resource) || dashboard_path
    end

    def after_sign_out_path_for(resource_or_scope)
        root_path
    end

end
