1
0

base_controller.rb 447 B

1234567891011121314151617181920212223
  1. # frozen_string_literal: true
  2. class Disputes::BaseController < ApplicationController
  3. include Authorization
  4. layout 'admin'
  5. skip_before_action :require_functional!
  6. before_action :set_body_classes
  7. before_action :authenticate_user!
  8. before_action :set_cache_headers
  9. private
  10. def set_body_classes
  11. @body_classes = 'admin'
  12. end
  13. def set_cache_headers
  14. response.cache_control.replace(private: true, no_store: true)
  15. end
  16. end