From 94aaa46a12c9548e30cd389dd464900509b05150 Mon Sep 17 00:00:00 2001 From: Jonne Hass Date: Sun, 11 Dec 2011 13:12:40 +0100 Subject: [PATCH] slight speed improvement by tweaking devise in the test env --- config/initializers/devise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index e8e8a55b6..d4a480f0a 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -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