Module: Dynamoid::Validations::ClassMethods

Defined in:
lib/dynamoid/validations.rb

Defined Under Namespace

Classes: PresenceValidator

Instance Method Summary collapse

Instance Method Details

#validates_presence_of(*attr_names) ⇒ Object

Override validates_presence_of to handle false values as present.

Since:

  • 1.1.1


45
46
47
# File 'lib/dynamoid/validations.rb', line 45

def validates_presence_of(*attr_names)
  validates_with PresenceValidator, _merge_attributes(attr_names)
end