class Hermod::Validators::ValuePresence

checks the value is present

Private Instance Methods

message(value, attributes) click to toggle source
# File lib/hermod/validators/value_presence.rb, line 14
def message(value, attributes)
  "isn't optional but no value was provided"
end
test(value, attributes) click to toggle source
# File lib/hermod/validators/value_presence.rb, line 10
def test(value, attributes)
  value.present?
end