This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-14 12:27:53 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Disputes::BaseController < ApplicationController
|
|
|
|
include Authorization
|
|
|
|
|
|
|
|
layout 'admin'
|
|
|
|
|
|
|
|
skip_before_action :require_functional!
|
|
|
|
|
|
|
|
before_action :set_body_classes
|
|
|
|
before_action :authenticate_user!
|
2022-02-14 12:54:01 -08:00
|
|
|
before_action :set_pack
|
2023-04-19 07:07:29 -07:00
|
|
|
before_action :set_cache_headers
|
2022-02-14 12:27:53 -08:00
|
|
|
|
|
|
|
private
|
|
|
|
|
2022-02-14 12:54:01 -08:00
|
|
|
def set_pack
|
|
|
|
use_pack 'admin'
|
|
|
|
end
|
|
|
|
|
2022-02-14 12:27:53 -08:00
|
|
|
def set_body_classes
|
|
|
|
@body_classes = 'admin'
|
|
|
|
end
|
2023-04-19 07:07:29 -07:00
|
|
|
|
|
|
|
def set_cache_headers
|
|
|
|
response.cache_control.replace(private: true, no_store: true)
|
|
|
|
end
|
2022-02-14 12:27:53 -08:00
|
|
|
end
|