Sha256: 9cca359bc0737e0b22f7705a41954b6751841adfd967e1dcf2d394c1ca6a130a
Contents?: true
Size: 357 Bytes
Versions: 57
Compression:
Stored size: 357 Bytes
Contents
module Personable def self.included(receiver) receiver.send(:include, Mongoid::Document) receiver.field :title , type: String receiver.field :given_name , type: String receiver.field :family_name , type: String receiver.embeds_many :addresses, as: :locatable receiver.embeds_many :telecoms, as: :contactable end end
Version data entries
57 entries across 57 versions & 1 rubygems