Sha256: f2239dbaa99dde75b0a293e79e399203fee960fed982d4b0f58628bfab132d61

Contents?: true

Size: 245 Bytes

Versions: 27

Compression:

Stored size: 245 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

class CountryCode
  include Mongoid::Document

  field :_id, type: Integer, overwrite: true, default: ->{ code }

  field :code, type: Integer
  embedded_in :phone_number, class_name: "Phone"
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
mongoid-7.1.5 spec/app/models/country_code.rb
mongoid-7.2.0.rc1 spec/support/models/country_code.rb
mongoid-7.1.4 spec/app/models/country_code.rb
mongoid-7.1.2 spec/app/models/country_code.rb
mongoid-7.1.1 spec/app/models/country_code.rb
mongoid-7.1.0 spec/app/models/country_code.rb
mongoid-7.1.0.rc0 spec/app/models/country_code.rb