class Hermod::Validators::WholeUnits
representation of an integer
Checks a decimal value has no decimal componant, i.e. it’s just a decimal
def message(value, attributes)
def message(value, attributes) "must be in whole units" end
def test(value, attributes)
def test(value, attributes) value.blank? || value == value.to_i end