Set @body_classes to admin layout (#9081)
This commit is contained in:
committed by
Eugen Rochko
parent
df3a7e724d
commit
e8ffecbd36
@ -6,6 +6,7 @@ class Settings::ExportsController < ApplicationController
|
||||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_body_classes
|
||||
|
||||
def show
|
||||
@export = Export.new(current_account)
|
||||
@ -20,4 +21,10 @@ class Settings::ExportsController < ApplicationController
|
||||
|
||||
redirect_to settings_export_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_body_classes
|
||||
@body_classes = 'admin'
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user