Class: Validaty::AllowBlankBase
- Defined in:
- lib/validaty/allow_blank_base.rb
Direct Known Subclasses
CNPJValidator, CPFValidator, DateValidator, EmailValidator, PhoneValidator, UUIDValidator
Instance Method Summary collapse
Instance Method Details
#validate_each(resource, attribute, value) ⇒ Object
3 4 5 6 7 |
# File 'lib/validaty/allow_blank_base.rb', line 3 def validate_each(resource, attribute, value) return if value.blank? super end |