0
0
Fork 0

Set @body_classes to admin layout (#9081)

This commit is contained in:
Yamagishi Kazutoshi 2018-10-25 07:10:01 +09:00 committed by Eugen Rochko
parent df3a7e724d
commit e8ffecbd36
17 changed files with 89 additions and 3 deletions

View file

@ -7,6 +7,7 @@ module Settings
before_action :authenticate_user!
before_action :ensure_otp_secret
before_action :set_body_classes
def new
prepare_two_factor_form
@ -43,6 +44,10 @@ module Settings
def ensure_otp_secret
redirect_to settings_two_factor_authentication_path unless current_user.otp_secret
end
def set_body_classes
@body_classes = 'admin'
end
end
end
end