Yeah, it was supposed to be #create?

th-downstream
Eugen Rochko 6 years ago committed by GitHub
parent 8205147d04
commit 32c3fc08fe

@ -8,7 +8,7 @@ class InvitesController < ApplicationController
before_action :authenticate_user! before_action :authenticate_user!
def index def index
authorize :invite, :index? authorize :invite, :create?
@invites = invites @invites = invites
@invite = Invite.new(expires_in: 1.day.to_i) @invite = Invite.new(expires_in: 1.day.to_i)

Loading…
Cancel
Save