diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-14 08:01:27 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-14 08:01:27 -0800 |
commit | 77edb7cf55d4f0b487bd8e664f6d0725f362745d (patch) | |
tree | d2d9df7a68cb8bd4a49e5fc1cef42645257252a6 /activemodel/lib/active_model/railtie.rb | |
parent | 71922fe5559f3b5865b89a39d56a3675491a021f (diff) | |
parent | 06faa6da808ef9e98455c35aefd4a4112c811c8f (diff) | |
download | rails-77edb7cf55d4f0b487bd8e664f6d0725f362745d.tar.gz rails-77edb7cf55d4f0b487bd8e664f6d0725f362745d.tar.bz2 rails-77edb7cf55d4f0b487bd8e664f6d0725f362745d.zip |
Merge pull request #8216 from trevorturk/master
Use BCrypt's MIN_COST in the test environment for speedier tests
Diffstat (limited to 'activemodel/lib/active_model/railtie.rb')
-rw-r--r-- | activemodel/lib/active_model/railtie.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/railtie.rb b/activemodel/lib/active_model/railtie.rb index 75cde900e3..1671eb7bd4 100644 --- a/activemodel/lib/active_model/railtie.rb +++ b/activemodel/lib/active_model/railtie.rb @@ -4,5 +4,9 @@ require "rails" module ActiveModel class Railtie < Rails::Railtie # :nodoc: config.eager_load_namespaces << ActiveModel + + initializer "active_model.secure_password" do + ActiveModel::SecurePassword.min_cost = Rails.env.test? + end end end |