Sha256: f4fdc19015782d35ee65c79aec09e6a4f4b713610c73827fc0acb4cd25446ad5

Contents?: true

Size: 137 Bytes

Versions: 8

Compression:

Stored size: 137 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
mongoid-paranoia-1.1.0 spec/app/models/dog.rb
mongoid-paranoia-1.0.1 spec/app/models/dog.rb
mongoid-paranoia-1.0.0 spec/app/models/dog.rb
mongoid-versioning-1.0.0 spec/app/models/dog.rb
mongoid-paranoia-1.0.0.beta2 spec/app/models/dog.rb
mongoid-versioning-1.0.0.beta2 spec/app/models/dog.rb
mongoid-paranoia-1.0.0.beta1 spec/app/models/dog.rb
mongoid-versioning-1.0.0.beta1 spec/app/models/dog.rb