1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 14:58:21 +09:00
mastodon/app/controllers/settings/base_controller.rb
ysksn b048926e67 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.
2018-12-12 22:32:13 +01:00

12 lines
193 B
Ruby

# frozen_string_literal: true
class Settings::BaseController < ApplicationController
before_action :set_body_classes
private
def set_body_classes
@body_classes = 'admin'
end
end