Sha256: 803d402dfd135bb2b13ef7409d4cc107a895b2f6e8319ed1c7a0ff9c9a490f24

Contents?: true

Size: 139 Bytes

Versions: 69

Compression:

Stored size: 139 Bytes

Contents

class Template
  include Mongoid::Document
  field :active, type: Mongoid::Boolean, default: false
  validates :active, presence: true
end

Version data entries

69 entries across 64 versions & 3 rubygems

Version Path
mongoid-4.0.2 spec/app/models/template.rb
mongoid-4.0.1 spec/app/models/template.rb
mongoid-4.0.0 spec/app/models/template.rb
mongoid-4.0.0.rc2 spec/app/models/template.rb
mongoid-4.0.0.rc1 spec/app/models/template.rb
mongoid-4.0.0.beta2 spec/app/models/template.rb
mongoid-4.0.0.beta1 spec/app/models/template.rb
mongoid-4.0.0.alpha2 spec/app/models/template.rb
mongoid-4.0.0.alpha1 spec/app/models/template.rb