0
0
Fork 0

Add autofollow option to invites (#7805)

* Add autofollow option to invites

* Trigger CodeClimate rebuild
This commit is contained in:
Eugen Rochko 2018-06-15 18:00:23 +02:00 committed by GitHub
parent 33dd9bf36d
commit ca85658975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 108 additions and 18 deletions

View file

@ -11,7 +11,7 @@ class InvitesController < ApplicationController
authorize :invite, :create?
@invites = invites
@invite = Invite.new(expires_in: 1.day.to_i)
@invite = Invite.new
end
def create
@ -42,6 +42,6 @@ class InvitesController < ApplicationController
end
def resource_params
params.require(:invite).permit(:max_uses, :expires_in)
params.require(:invite).permit(:max_uses, :expires_in, :autofollow)
end
end