slight speed improvement by tweaking devise in the test env
This commit is contained in:
parent
dbdee43cc6
commit
94aaa46a12
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ Devise.setup do |config|
|
|||
# ==> Configuration for :database_authenticatable
|
||||
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
||||
# using other encryptors, it sets how many times you want the password re-encrypted.
|
||||
config.stretches = 10
|
||||
config.stretches = Rails.env.test? ? 1 : 10
|
||||
|
||||
# Define which will be the encryption algorithm. Devise also supports encryptors
|
||||
# from others authentication tools as :clearance_sha1, :authlogic_sha512 (then
|
||||
|
|
|
|||
Loading…
Reference in a new issue