Sha256: 8bdced14bead16db2f40ddc1da886c311bfd8347f29e256fbaf6b8cfef3775fa

Contents?: true

Size: 141 Bytes

Versions: 59

Compression:

Stored size: 141 Bytes

Contents

class Audio
  include Mongoid::Document
  field :likes, type: Integer
  default_scope ->{ self.or({:likes => nil}, {:likes.gt => 100}) }
end

Version data entries

59 entries across 55 versions & 3 rubygems

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