Class: DataMapper::Validate::RequiredFieldValidator

Class | DataMapper::Validate::RequiredFieldValidator
In: | lib/dm-validations/validators/required_field_validator.rb
Parent: | GenericValidator

@author Guy van den Berg @since 0.9

### Methods

boolean_type? call default_error present?

### Public Instance methods

call(target)

### Protected Instance methods

boolean_type?(property)

Is `property` a boolean property?

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

default_error(property)
present?(value, property)

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]