Permalink
Browse files

Edited lib/generators/templates/devise.rb via GitHub

  • Loading branch information...
josevalim committed Aug 5, 2011
1 parent 98651da commit 6448490de5f304858229d026fc90eacfa931b2f8
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/generators/templates/devise.rb
@@ -61,8 +61,10 @@
# ==> 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.
- # Limiting the stretches to just one in test env will increase the performance of
- # your tests dramatically if you create a lot of users.
+ #
+ # Limiting the stretches to just one in testing will increase the performance of
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
+ # a value less than 10 in other environments.
config.stretches = Rails.env.test? ? 1 : 10
# Setup a pepper to generate the encrypted password.

0 comments on commit 6448490

Please sign in to comment.