Sha256: 4689c63d26c188c954708a62b53191ac81dedca0eb39563995e3fb2ed6221d36
Contents?: true
Size: 665 Bytes
Versions: 4
Compression:
Stored size: 665 Bytes
Contents
module Comee module Core class PurchaseOrder < ApplicationRecord belongs_to :supplier validates :order_date, :delivery_address, :status, :delivery_date, presence: true enum status: { draft: 0, submitted: 1, approved: 2, confirmed: 3, canceled: 4 } def self.ransackable_attributes(_auth_object = nil) %w[ id supplier_id unit_id order_date status delivery_address delivery_date ] end def self.ransackable_associations(_auth_object = nil) %w[supplier unit] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems