Yeah, it was supposed to be #create?

pull/510/head^2
Eugen Rochko 2018-05-22 20:05:24 +02:00 committed by GitHub
parent 7745a22ec7
commit 4d81809f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)