Set @body_classes to admin layout (#9081)
This commit is contained in:
parent
df3a7e724d
commit
e8ffecbd36
17 changed files with 89 additions and 3 deletions
|
@ -4,6 +4,7 @@ class Settings::PreferencesController < ApplicationController
|
|||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_body_classes
|
||||
|
||||
def show; end
|
||||
|
||||
|
@ -51,4 +52,8 @@ class Settings::PreferencesController < ApplicationController
|
|||
interactions: %i(must_be_follower must_be_following)
|
||||
)
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
@body_classes = 'admin'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue