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



51
52
53
# File 'lib/dynamoid/validations.rb', line 51

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