class Right::SortValueValidator::DefinedValidator

Validates if Parameter is undefined or not

Public Instance Methods

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