class Might::FilterValueValidator::DefinedValidator

Validates if Parameter is undefined or not

Public Instance Methods

validate_each(record, attribute, _value) click to toggle source
# File lib/might/filter_value_validator.rb, line 15
def validate_each(record, attribute, _value)
  record.errors.add(attribute, :undefined_filter) if record.undefined?
end