Sha256: e2734a822e93df15e2ec432569b15f9aceb3d3d2dccee100efda814ea2830f9e

Contents?: true

Size: 161 Bytes

Versions: 14

Compression:

Stored size: 161 Bytes

Contents

class Tree
  include Mongoid::Document

  field :name
  field :evergreen, type: Boolean

  scope :verdant, where(evergreen: true)
  default_scope asc(:name)
end

Version data entries

14 entries across 14 versions & 6 rubygems

Version Path
mongoid-3.1.7 spec/app/models/tree.rb
mongoid-3.1.6 spec/app/models/tree.rb
sepastian-mongoid-rails4-4.0.1.alpha spec/app/models/tree.rb
sepastian-mongoid-rails4-4.0.0.alpha spec/app/models/tree.rb
mongoid-3.1.5 spec/app/models/tree.rb
mongoid_heroku_stable-4.0.0 spec/app/models/tree.rb
mongoid_rails4-4.0.0 spec/app/models/tree.rb
mongoid-paranoia-0.3.0 spec/app/models/tree.rb
mongoid-paranoia-0.2.1 spec/app/models/tree.rb
mongoid-versioning-0.2.0 spec/app/models/tree.rb
mongoid-paranoia-0.2.0 spec/app/models/tree.rb
mongoid-paranoia-0.1.1 spec/app/models/tree.rb
mongoid-versioning-0.1.0 spec/app/models/tree.rb
mongoid-paranoia-0.1.0 spec/app/models/tree.rb