diff options
Diffstat (limited to 'activemodel/lib/active_model')
| -rw-r--r-- | activemodel/lib/active_model/secure_password.rb | 6 | ||||
| -rw-r--r-- | activemodel/lib/active_model/type/integer.rb | 2 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index 197f7f20b9..86f051f5ce 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -4,8 +4,8 @@ module ActiveModel    module SecurePassword      extend ActiveSupport::Concern -    # BCrypt hash function can handle maximum 72 characters, and if we pass -    # password of length more than 72 characters it ignores extra characters. +    # BCrypt hash function can handle maximum 72 bytes, and if we pass +    # password of length more than 72 bytes it ignores extra characters.      # Hence need to put a restriction on password length.      MAX_PASSWORD_LENGTH_ALLOWED = 72 @@ -20,7 +20,7 @@ module ActiveModel        #        # The following validations are added automatically:        # * Password must be present on creation -      # * Password length should be less than or equal to 72 characters +      # * Password length should be less than or equal to 72 bytes        # * Confirmation of password (using a +password_confirmation+ attribute)        #        # If password confirmation validation is not needed, simply leave out the diff --git a/activemodel/lib/active_model/type/integer.rb b/activemodel/lib/active_model/type/integer.rb index d1473bd792..fe396998a3 100644 --- a/activemodel/lib/active_model/type/integer.rb +++ b/activemodel/lib/active_model/type/integer.rb @@ -6,7 +6,7 @@ module ActiveModel        include Helpers::Numeric        # Column storage size in bytes. -      # 4 bytes means a MySQL int or Postgres integer as opposed to smallint etc. +      # 4 bytes means an integer as opposed to smallint etc.        DEFAULT_LIMIT = 4        def initialize(*)  | 
