From 7b1a42c05707c0e1f793bada3a448fd6f8630f5a Mon Sep 17 00:00:00 2001 From: Aditya Kapoor Date: Thu, 3 Jul 2014 02:51:12 +0530 Subject: automatically include ActiveModel::Validations when include ActiveModel::SecurePassword --- activemodel/lib/active_model/secure_password.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activemodel/lib/active_model/secure_password.rb') diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index fdfd8cb147..88e578e626 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -1,6 +1,7 @@ module ActiveModel module SecurePassword extend ActiveSupport::Concern + include ActiveModel::Validations # BCrypt hash function can handle maximum 72 characters, and if we pass # password of length more than 72 characters it ignores extra characters. -- cgit v1.2.3