Browse Source

Use settings pack for InvitesController (#229)

closed-social-glitch-2
David Yip 7 years ago
parent
commit
161d286df2
No known key found for this signature in database GPG Key ID: 7DA0036508FCC0CC
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      app/controllers/invites_controller.rb

+ 5
- 0
app/controllers/invites_controller.rb 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

Loading…
Cancel
Save