Commit 84408015cd038b25a3f2d286c172461b263a6b1a
1 parent
c5732658
Exists in
spb-stable
and in
3 other branches
Change Devise.confirm_within to Devise.allow_unconfirmed_access_for
According to Devise's changelog (https://github.com/plataformatec/devise/blob/master/CHANGELOG.md), Devise.confirm_within was deprecated in favor of Devise.allow_unconfirmed_access_for in version 2.0.0.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
config/initializers/devise.rb
| ... | ... | @@ -77,11 +77,11 @@ Devise.setup do |config| |
| 77 | 77 | # ==> Configuration for :confirmable |
| 78 | 78 | # The time you want to give a user to confirm their account. During this time |
| 79 | 79 | # they will be able to access your application without confirming. Default is 0.days |
| 80 | - # When confirm_within is zero, the user won't be able to sign in without confirming. | |
| 80 | + # When allow_unconfirmed_access_for is zero, the user won't be able to sign in without confirming. | |
| 81 | 81 | # You can use this to let your user access some features of your application |
| 82 | 82 | # without confirming the account, but blocking it after a certain period |
| 83 | 83 | # (ie 2 days). |
| 84 | - # config.confirm_within = 2.days | |
| 84 | + # config.allow_unconfirmed_access_for = 2.days | |
| 85 | 85 | |
| 86 | 86 | # Defines which key will be used when confirming an account |
| 87 | 87 | # config.confirmation_keys = [ :email ] | ... | ... |