class Hermod::Validators::NonZero

Checks the value is not zero

def message(value, attributes)

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

def test(value, attributes)

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