Sha256: dc35d542d4aa1c004d20b3ad0e0a043e773ca75f8f15a14872aaca365e4ca7e5

Contents?: true

Size: 181 Bytes

Versions: 91

Compression:

Stored size: 181 Bytes

Contents

class Pizza
  include Mongoid::Document
  field :name, type: String
  has_one :topping, autosave: true
  validates_presence_of :topping
  accepts_nested_attributes_for :topping
end

Version data entries

91 entries across 86 versions & 8 rubygems

Version Path
tdiary-5.0.8 vendor/bundle/gems/mongoid-6.4.0/spec/app/models/pizza.rb
mongoid-7.0.0 spec/app/models/pizza.rb
mongoid-6.4.0 spec/app/models/pizza.rb
mongoid-6.3.0 spec/app/models/pizza.rb
mongoid-6.2.1 spec/app/models/pizza.rb
mongoid-7.0.0.beta spec/app/models/pizza.rb
tdiary-5.0.5 vendor/bundle/gems/mongoid-6.1.0/spec/app/models/pizza.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/mongoid-6.1.0/spec/app/models/pizza.rb
tdiary-5.0.5 vendor/bundle/gems/mongoid-6.2.0/spec/app/models/pizza.rb
mongoid-6.2.0 spec/app/models/pizza.rb
mongoid-6.1.1 spec/app/models/pizza.rb
mongoid-5.2.1 spec/app/models/pizza.rb
tdiary-5.0.4 vendor/bundle/gems/mongoid-6.1.0/spec/app/models/pizza.rb
mongoid-6.1.0 spec/app/models/pizza.rb
mongoid-5.2.0 spec/app/models/pizza.rb
mongoid-5.2.0.rc0 spec/app/models/pizza.rb
mongoid-6.1.0.rc0 spec/app/models/pizza.rb
mongoid-6.0.3 spec/app/models/pizza.rb
mongoid-5.1.6 spec/app/models/pizza.rb
mongoid-6.0.2 spec/app/models/pizza.rb