def find_validator(attribute, klass)
      return unless object.respond_to?(:_validators)
      object._validators[attribute].find { |validator| validator.class == klass }
    end
def find_validator(attribute, klass)
      return unless object.respond_to?(:_validators)
      object._validators[attribute].find { |validator| validator.class == klass }
    end
Private: Finds a validator.

 attribute - The attribute to validate.
 klass     - The Class of the validator to find.

 Returns a klass object.