Yeah, it was supposed to be #create?

lolsob-rspec
Eugen Rochko 2018-05-22 20:05:24 +02:00 committed by GitHub
parent 8205147d04
commit 32c3fc08fe
1 changed files with 1 additions and 1 deletions

View File

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