summaryrefslogtreecommitdiff
path: root/config/initializers/devise.rb
diff options
context:
space:
mode:
authorAthos Ribeiro <athoscribeiro@gmail.com>2014-02-03 21:20:36 -0500
committerAthos Ribeiro <athoscribeiro@gmail.com>2014-02-03 21:20:36 -0500
commit84408015cd038b25a3f2d286c172461b263a6b1a (patch)
tree53e39edcc9f43d3136acfb74751a4c62a7b42d0a /config/initializers/devise.rb
parentc573265891bae3d46d1f9b713de76918a37b3811 (diff)
downloadgitlab-ce-84408015cd038b25a3f2d286c172461b263a6b1a.tar.gz
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.
Diffstat (limited to 'config/initializers/devise.rb')
-rw-r--r--config/initializers/devise.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index e12f07fa6fc..a02bf9d4aec 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -77,11 +77,11 @@ Devise.setup do |config|
# ==> Configuration for :confirmable
# The time you want to give a user to confirm their account. During this time
# they will be able to access your application without confirming. Default is 0.days
- # When confirm_within is zero, the user won't be able to sign in without confirming.
+ # When allow_unconfirmed_access_for is zero, the user won't be able to sign in without confirming.
# You can use this to let your user access some features of your application
# without confirming the account, but blocking it after a certain period
# (ie 2 days).
- # config.confirm_within = 2.days
+ # config.allow_unconfirmed_access_for = 2.days
# Defines which key will be used when confirming an account
# config.confirmation_keys = [ :email ]