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

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-09-06 13:58:46 +00:00
1 parent fd7fc7bdc3
commit a9d0b48b65
14 files changed
+13 -56

No files matched your search

-5
View File
@@ -7,17 +7,12 @@ module Admin
layout 'admin'
before_action :set_body_classes
before_action :set_cache_headers
after_action :verify_authorized
private
def set_body_classes
@body_classes = 'admin'
end
def set_cache_headers
response.cache_control.replace(private: true, no_store: true)
end