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

@ -6,6 +6,7 @@ class InvitesController < ApplicationController
layout 'admin'
before_action :authenticate_user!
before_action :set_body_classes
def index
authorize :invite, :create?
@ -44,4 +45,8 @@ class InvitesController < ApplicationController
def resource_params
params.require(:invite).permit(:max_uses, :expires_in, :autofollow)
end
def set_body_classes
@body_classes = 'admin'
end
end