instance method validate

Ruby on Rails edge

Since edge

Signature

validate(_record, _attribute)

Validates the password and adds error to the record in the given attribute. Argon2 has no maximum input size, no validation needed.

Parameters

_record req
_attribute req
Source
# File activemodel/lib/active_model/secure_password/argon2_password.rb, line 37
      def validate(_record, _attribute)
      end

Defined in activemodel/lib/active_model/secure_password/argon2_password.rb line 37 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::SecurePassword::Argon2Password

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close