class Hermod::Validators::NonNegative

Checks a number is not negative

def message(value, attributes)

def message(value, attributes)
  "cannot be negative"
end

def test(value, attributes)

def test(value, attributes)
  value.blank? || value >= 0
end