class DefraRuby::Validators::TrueFalseValidator

Public Instance Methods

validate_each(record, attribute, value) click to toggle source
# File lib/defra_ruby/validators/true_false_validator.rb, line 8
def validate_each(record, attribute, value)
  valid_options = [true, false]

  value_is_included?(record, attribute, value, valid_options)
end