aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorAditya Kapoor <aditya.kapoor@vinsol.com>2014-07-03 02:51:12 +0530
committerAditya Kapoor <aditya.kapoor@vinsol.com>2014-07-03 02:51:12 +0530
commit7b1a42c05707c0e1f793bada3a448fd6f8630f5a (patch)
treeb8f0a24f6e45f58f4fff147cf61100bfd531775c /activemodel/lib/active_model
parentc8f017682e507ba6cb4183c29cf9398a20211d15 (diff)
downloadrails-7b1a42c05707c0e1f793bada3a448fd6f8630f5a.tar.gz
rails-7b1a42c05707c0e1f793bada3a448fd6f8630f5a.tar.bz2
rails-7b1a42c05707c0e1f793bada3a448fd6f8630f5a.zip
automatically include ActiveModel::Validations when include ActiveModel::SecurePassword
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/secure_password.rb1
1 files changed, 1 insertions, 0 deletions
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.