Sha256: 63facba650e7a7cb5be9a8e2e2b451d00dee424d8d3282f5762ad741fca99613

Contents?: true

Size: 448 Bytes

Versions: 17

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

class Passport
  include Mongoid::Document

  field :number, type: String
  field :country, type: String
  field :exp, as: :expiration_date, type: Date
  field :name, localize: true
  field :localized_translations, localize: true

  embedded_in :person, autobuild: true

  embeds_many :passport_pages
end

class PassportPage
  include Mongoid::Document

  field :num_stamps, type: Integer
  embedded_in :passport
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mongoid-8.1.8 spec/support/models/passport.rb
mongoid-8.1.7 spec/support/models/passport.rb
mongoid-8.1.6 spec/support/models/passport.rb
mongoid-8.0.8 spec/support/models/passport.rb
mongoid-8.1.5 spec/support/models/passport.rb
mongoid-8.1.4 spec/support/models/passport.rb
mongoid-8.0.7 spec/support/models/passport.rb
mongoid-8.1.3 spec/support/models/passport.rb
mongoid-8.1.2 spec/support/models/passport.rb
mongoid-8.0.6 spec/support/models/passport.rb
mongoid-8.1.1 spec/support/models/passport.rb
mongoid-8.0.5 spec/support/models/passport.rb
mongoid-8.1.0 spec/support/models/passport.rb
mongoid-8.0.4 spec/support/models/passport.rb
mongoid-8.0.3 spec/support/models/passport.rb
mongoid-8.0.2 spec/support/models/passport.rb
mongoid-8.0.1 spec/support/models/passport.rb