aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-02 18:26:55 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-02 18:26:55 -0300
commita4104278b5cc5a7e7b15473c1ea74125f915f2db (patch)
treeee9fd14d15d3796e354e0ad878b274a687e52faf /activemodel/lib
parentf625b6879df4d8710c0226007dc0929ed98355d2 (diff)
parent7b1a42c05707c0e1f793bada3a448fd6f8630f5a (diff)
downloadrails-a4104278b5cc5a7e7b15473c1ea74125f915f2db.tar.gz
rails-a4104278b5cc5a7e7b15473c1ea74125f915f2db.tar.bz2
rails-a4104278b5cc5a7e7b15473c1ea74125f915f2db.zip
Merge pull request #16024 from aditya-kapoor/include-validations
automatically include ActiveModel::Validations when include ActiveModel::SecurePassword
Diffstat (limited to 'activemodel/lib')
-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.