Sha256: 39a537484e0568987d630f93970b17c792a3b4a4cd9bd03bfb3cf5ac9edc0c33

Contents?: true

Size: 227 Bytes

Versions: 73

Compression:

Stored size: 227 Bytes

Contents

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

73 entries across 68 versions & 6 rubygems

Version Path
mongoid-7.0.13 spec/app/models/bar.rb
mongoid-7.0.12 spec/app/models/bar.rb
mongoid-6.4.8 spec/app/models/bar.rb
mongoid-7.0.11 spec/app/models/bar.rb
mongoid-7.0.10 spec/app/models/bar.rb
mongoid-6.4.7 spec/app/models/bar.rb
mongoid-6.4.5 spec/app/models/bar.rb
mongoid-7.0.8 spec/app/models/bar.rb
mongoid-7.0.7 spec/app/models/bar.rb
mongoid-7.0.6 spec/app/models/bar.rb
mongoid-5.4.1 spec/app/models/bar.rb
mongoid-7.0.5 spec/app/models/bar.rb
mongoid-7.0.4 spec/app/models/bar.rb
mongoid-6.4.4 spec/app/models/bar.rb
mongoid-7.0.3 spec/app/models/bar.rb
mongoid-6.4.2 spec/app/models/bar.rb
mongoid-7.0.2 spec/app/models/bar.rb
mongoid-7.0.1 spec/app/models/bar.rb
mongoid-6.4.1 spec/app/models/bar.rb
mongoid-5.4.0 spec/app/models/bar.rb