Use settings pack for InvitesController (#229)

This commit is contained in:
David Yip 2017-12-06 17:20:04 -06:00
parent f0b37f92a9
commit 6a5ba9d129

View file

@ -6,6 +6,7 @@ class InvitesController < ApplicationController
layout 'admin'
before_action :authenticate_user!
before_action :set_pack
def index
authorize :invite, :create?
@ -37,6 +38,10 @@ class InvitesController < ApplicationController
private
def set_pack
use_pack 'settings'
end
def resource_params
params.require(:invite).permit(:max_uses, :expires_in)
end