Sha256: 499f6ed8cca3aeef08eb48b31f242e6ffad1b9502dd32f9b61a24a00d6d6e295

Contents?: true

Size: 182 Bytes

Versions: 67

Compression:

Stored size: 182 Bytes

Contents

class LineItem
  include Mongoid::Document
  embedded_in :purchase
  belongs_to :product, polymorphic: true
  validates :product, presence: true, uniqueness: { scope: :product }
end

Version data entries

67 entries across 62 versions & 3 rubygems

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