Sha256: e294a2ac29158180e55a44e3457fd6c96bb76869fc8c7593ab724f29eb4f6371
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
module Popolo # An alternate or former name. class OtherName include Mongoid::Document embedded_in :nameable, polymorphic: true # An alternate or former name. field :name, type: String # The date on which the name was adopted. field :start_date, type: DateString # The date on which the name was abandoned. field :end_date, type: DateString # A note, e.g. 'Birth name'. field :note, type: String validates_presence_of :name validates_format_of :start_date, with: DATE_STRING_FORMAT, allow_blank: true validates_format_of :end_date, with: DATE_STRING_FORMAT, allow_blank: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
popolo-0.0.3 | app/models/popolo/other_name.rb |