diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 4980a93..ac56a2a 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -140,7 +140,7 @@ Devise.setup do |config| # The period the generated invitation token is valid. After this # period, the invited resource won't be able to accept the invitation. # When invite_for is 0 (the default), the invitation won't expire. - config.invite_for = 2.weeks + config.invite_for = 0 # Number of invitations users can send. # - If invitation_limit is nil, there is no limit for invitations, @@ -166,7 +166,7 @@ Devise.setup do |config| # Resend invitation if user with invited status is invited again # Default: true - # config.resend_invitation = false + config.resend_invitation = true # The class name of the inviting model. If this is nil, # the #invited_by association is declared to be polymorphic.