Class DataMapper::Validations::PresenceValidator
In: lib/dm-validations/validators/required_field_validator.rb
Parent: GenericValidator

@author Guy van den Berg @since 0.9

Methods

Public Instance methods

Protected Instance methods

Is the property a boolean property?

@return [Boolean]

  Returns true for Boolean, ParanoidBoolean, TrueClass and other
  properties. Returns false for other property types or for
  non-properties.

Boolean property types are considered present if non-nil. Other property types are considered present if non-blank. Non-properties are considered present if non-blank.

[Validate]