Sha256: 918112adec0d67d3232f53765b66dc442f358d4ba268714c58b92f7b878fd719

Contents?: true

Size: 199 Bytes

Versions: 1

Compression:

Stored size: 199 Bytes

Contents

class Phone
  include Mongoid::Document

  attr_accessor :number_in_observer

  field :_id, type: String, default: -> { number }

  field :number
  embeds_one :country_code
  embedded_in :person
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-paranoia-2.0.0 spec/app/models/phone.rb