Class: NoBrainer::Document::Validation::NotNull::NotNullValidator
- Inherits:
-
ActiveModel::EachValidator
- Object
- ActiveModel::EachValidator
- NoBrainer::Document::Validation::NotNull::NotNullValidator
- Defined in:
- lib/no_brainer/document/validation/not_null.rb
Instance Method Summary collapse
Instance Method Details
#validate_each(doc, attr, value) ⇒ Object
11 12 13 |
# File 'lib/no_brainer/document/validation/not_null.rb', line 11 def validate_each(doc, attr, value) doc.errors.add(attr, :undefined, **) if value.nil? end |