instance method check_validity!

Ruby on Rails 7.2.3

Since v3.0.20

Available in: v3.0.20 v3.1.12 v3.2.22.5 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

check_validity!()

Hook method that gets called by the initializer allowing verification that the arguments supplied are valid. You could for example raise an ArgumentError when invalid options are supplied.

Source
# File activemodel/lib/active_model/validator.rb, line 168
    def check_validity!
    end

Defined in activemodel/lib/active_model/validator.rb line 168 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::EachValidator

Type at least 2 characters to search.

↑↓ navigate · open · esc close