Sha256: 3f3b8639e120ed39420e6212a991b538382d148ab24538637fb2eb66934bed99
Contents?: true
Size: 490 Bytes
Versions: 38
Compression:
Stored size: 490 Bytes
Contents
module Comee module Core class CustomerOrderItem < ApplicationRecord belongs_to :customer_order belongs_to :product belongs_to :unit validates :customer_item_no, :quantity, :price, :delivery_date, presence: true def self.ransackable_attributes(_auth_object = nil) %w[customer_order_id product_id unit_id] end def self.ransackable_associations(_auth_object = nil) %w[customer_order product unit] end end end end
Version data entries
38 entries across 38 versions & 1 rubygems