class Mongoid::Validatable::PresenceValidator

Validates that the specified attributes are not blank (as defined by Object#blank?).

@example Define the presence validator.

class Person
  include Mongoid::Document
  field :title

  validates_presence_of :title
end