about summary refs log tree commit diff
path: root/app/controllers/admin/base_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/base_controller.rb')
-rw-r--r--app/controllers/admin/base_controller.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/controllers/admin/base_controller.rb b/app/controllers/admin/base_controller.rb
index 7fb69d578..8593b582a 100644
--- a/app/controllers/admin/base_controller.rb
+++ b/app/controllers/admin/base_controller.rb
@@ -5,8 +5,15 @@ module Admin
     include Authorization
     include AccountableConcern
 
+    layout 'admin'
+
     before_action :require_staff!
+    before_action :set_body_classes
 
-    layout 'admin'
+    private
+
+    def set_body_classes
+      @body_classes = 'admin'
+    end
   end
 end