Class: Validaty::AllowBlankBase

Inherits:
Base
  • Object
show all
Defined in:
lib/validaty/allow_blank_base.rb

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