about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-12-06 17:20:04 -0600
committerDavid Yip <yipdw@member.fsf.org>2017-12-06 17:20:04 -0600
commit161d286df2412dc5fcbbf8dc6e66b3ae4e820dd6 (patch)
tree945886daa960248c2b04bf85820f0956b9d153d0 /app
parent81b01457598459c42a7b14d9aa14f91ba60dcae1 (diff)
Use settings pack for InvitesController (#229)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/invites_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb
index 38d6c8d73..189e4072e 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