class ActiveModel::Validator
def self.kind
PresenceValidator.kind # => :presence
Returns the kind of the validator.
def self.kind @kind ||= name.split("::").last.underscore.chomp("_validator").to_sym unless anonymous? end
def self.kind @kind ||= name.split("::").last.underscore.chomp("_validator").to_sym unless anonymous? end