base_controller.rb 348 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. class Settings::BaseController < ApplicationController
  3. before_action :set_body_classes
  4. before_action :set_cache_headers
  5. private
  6. def set_body_classes
  7. @body_classes = 'admin'
  8. end
  9. def set_cache_headers
  10. response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
  11. end
  12. end