Sha256: 07314790955ef85aa2b3515d28f01b7eb65342eca2f69b9e13b6d27a3152945e

Contents?: true

Size: 179 Bytes

Versions: 20

Compression:

Stored size: 179 Bytes

Contents

class CountryCode
  include Mongoid::Document

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

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

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
mongoid-paranoia-1.1.0 spec/app/models/country_code.rb
mongoid-paranoia-1.0.1 spec/app/models/country_code.rb
mongoid-3.1.7 spec/app/models/country_code.rb
mongoid-paranoia-1.0.0 spec/app/models/country_code.rb
mongoid-versioning-1.0.0 spec/app/models/country_code.rb
mongoid-paranoia-1.0.0.beta2 spec/app/models/country_code.rb
mongoid-versioning-1.0.0.beta2 spec/app/models/country_code.rb
mongoid-paranoia-1.0.0.beta1 spec/app/models/country_code.rb
mongoid-versioning-1.0.0.beta1 spec/app/models/country_code.rb
mongoid-3.1.6 spec/app/models/country_code.rb
mongoid-3.1.5 spec/app/models/country_code.rb
mongoid_heroku_stable-4.0.0 spec/app/models/country_code.rb
mongoid_rails4-4.0.0 spec/app/models/country_code.rb
mongoid-paranoia-0.3.0 spec/app/models/country_code.rb
mongoid-paranoia-0.2.1 spec/app/models/country_code.rb
mongoid-versioning-0.2.0 spec/app/models/country_code.rb
mongoid-paranoia-0.2.0 spec/app/models/country_code.rb
mongoid-paranoia-0.1.1 spec/app/models/country_code.rb
mongoid-versioning-0.1.0 spec/app/models/country_code.rb
mongoid-paranoia-0.1.0 spec/app/models/country_code.rb