method

check_validity!

rails latest stable - Class: ActiveModel::EachValidator
check_validity!()
public

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.