Sha256: 47b28c4851eae868dbdf44bad0cbb10c75f77cd893b12c08ee8cd01ff7e05181
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
module Comee module Core class ClientOrderItem < ApplicationRecord belongs_to :client_order belongs_to :product validates :quantity, :price, presence: true, numericality: {greater_than: 0} delegate(:name, to: :product, prefix: true) delegate(:code, to: :product, prefix: true) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comee_core-0.1.12 | app/models/comee/core/client_order_item.rb |
comee_core-0.1.11 | app/models/comee/core/client_order_item.rb |