From 161d286df2412dc5fcbbf8dc6e66b3ae4e820dd6 Mon Sep 17 00:00:00 2001 From: David Yip Date: Wed, 6 Dec 2017 17:20:04 -0600 Subject: [PATCH] Use settings pack for InvitesController (#229) --- app/controllers/invites_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 38d6c8d73e..189e4072e9 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -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