2018-12-13 06:32:13 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Settings::BaseController < ApplicationController
|
|
|
|
before_action :set_body_classes
|
2019-12-30 12:38:30 +09:00
|
|
|
before_action :set_cache_headers
|
2018-12-13 06:32:13 +09:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_body_classes
|
|
|
|
@body_classes = 'admin'
|
|
|
|
end
|
2019-12-30 12:38:30 +09:00
|
|
|
|
|
|
|
def set_cache_headers
|
|
|
|
response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
|
|
|
|
end
|
2018-12-13 06:32:13 +09:00
|
|
|
end
|