Set @body_classes to admin layout (#9081)
This commit is contained in:
committed by
Eugen Rochko
parent
df3a7e724d
commit
e8ffecbd36
@ -2,6 +2,7 @@
|
||||
|
||||
class Settings::SessionsController < ApplicationController
|
||||
before_action :set_session, only: :destroy
|
||||
before_action :set_body_classes
|
||||
|
||||
def destroy
|
||||
@session.destroy!
|
||||
@ -14,4 +15,8 @@ class Settings::SessionsController < ApplicationController
|
||||
def set_session
|
||||
@session = current_user.session_activations.find(params[:id])
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
@body_classes = 'admin'
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user