about summary refs log tree commit diff
path: root/app/controllers/settings/base_controller.rb
diff options
context:
space:
mode:
authorysksn <bluewhale1982@gmail.com>2018-12-13 06:32:13 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-12-12 22:32:13 +0100
commitb048926e678e5b642cb1e939f629236e77944523 (patch)
tree417254cdb17485eb37655b32d3d5ea477e8e8b2a /app/controllers/settings/base_controller.rb
parent9983d21d35cad6ff1ad809baa7ae79dc430870f5 (diff)
Create Settings::BaseController (#9507)
Define `Settings::BaseController#set_body_classes` so that sub classes
inherit `Settings::BaseController` don't need to define
`#set_body_classes` agein.
Diffstat (limited to 'app/controllers/settings/base_controller.rb')
-rw-r--r--app/controllers/settings/base_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/settings/base_controller.rb b/app/controllers/settings/base_controller.rb
new file mode 100644
index 000000000..9bb14afa2
--- /dev/null
+++ b/app/controllers/settings/base_controller.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class Settings::BaseController < ApplicationController
+  before_action :set_body_classes
+
+  private
+
+  def set_body_classes
+    @body_classes = 'admin'
+  end
+end