make invites default to 5 again
This commit is contained in:
parent
bd6617ea55
commit
a705824b0c
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class Invitation < ActiveRecord::Base
|
|||
def self.create_invitee(opts = {})
|
||||
invitee = opts[:existing_user] || new_user_by_service_and_identifier(opts[:service], opts[:identifier])
|
||||
return invitee if opts[:service] == 'email' && !opts[:identifier].match(Devise.email_regexp)
|
||||
invitee.invites = opts[:invites] || 0
|
||||
invitee.invites = opts[:invites] || 5
|
||||
if invitee.new_record?
|
||||
invitee.errors.clear
|
||||
invitee.serialized_private_key ||= User.generate_key
|
||||
|
|
|
|||
Loading…
Reference in a new issue