Sha256: 004e54b7273eab9f683c4de6f0e838c93dd40172d17208ae50961075fab105e7

Contents?: true

Size: 258 Bytes

Versions: 27

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

class Bar
  include Mongoid::Document
  include Mongoid::Attributes::Dynamic
  field :name, type: String
  field :location, type: Array
  field :lat_lng, type: LatLng

  has_one :rating, as: :ratable
  index location: "2d"
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
mongoid-8.1.9 spec/support/models/bar.rb
mongoid-8.0.9 spec/support/models/bar.rb
mongoid-8.1.8 spec/support/models/bar.rb
mongoid-8.1.7 spec/support/models/bar.rb
mongoid-8.1.6 spec/support/models/bar.rb
mongoid-8.0.8 spec/support/models/bar.rb
mongoid-8.1.5 spec/support/models/bar.rb
mongoid-8.1.4 spec/support/models/bar.rb
mongoid-8.0.7 spec/support/models/bar.rb
mongoid-8.1.3 spec/support/models/bar.rb
mongoid-8.1.2 spec/support/models/bar.rb
mongoid-8.0.6 spec/support/models/bar.rb
mongoid-7.5.4 spec/support/models/bar.rb
mongoid-8.1.1 spec/support/models/bar.rb
mongoid-8.0.5 spec/support/models/bar.rb
mongoid-8.1.0 spec/support/models/bar.rb
mongoid-7.5.3 spec/support/models/bar.rb
mongoid-8.0.4 spec/support/models/bar.rb
mongoid-8.0.3 spec/support/models/bar.rb
mongoid-7.5.2 spec/support/models/bar.rb