2
0

Set "admin" body class from admin nested layout (#31269)

This commit is contained in:
Matt Jankowski
2024-09-06 09:58:46 -04:00
committed by GitHub
parent fd7fc7bdc3
commit a9d0b48b65
14 changed files with 13 additions and 56 deletions

View File

@@ -6,7 +6,6 @@ class RelationshipsController < ApplicationController
before_action :authenticate_user!
before_action :set_accounts, only: :show
before_action :set_relationships, only: :show
before_action :set_body_classes
before_action :set_cache_headers
helper_method :following_relationship?, :followed_by_relationship?, :mutual_relationship?
@@ -68,10 +67,6 @@ class RelationshipsController < ApplicationController
end
end
def set_body_classes
@body_classes = 'admin'
end
def set_cache_headers
response.cache_control.replace(private: true, no_store: true)
end