Sha256: 2be6d54d98b3f292ddf1e8eb4f39760bcd532281c6356acac5f0cb141be55f2a

Contents?: true

Size: 202 Bytes

Versions: 68

Compression:

Stored size: 202 Bytes

Contents

class Dog
  include Mongoid::Document
  field :name, type: String
  has_and_belongs_to_many :breeds
  has_and_belongs_to_many :fire_hydrants, primary_key: :location
  default_scope ->{ asc(:name) }
end

Version data entries

68 entries across 63 versions & 3 rubygems

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