Sha256: 4e994d9d691947c2da2062c413a88cce831b29cade3cb1f80314967f7985cccc

Contents?: true

Size: 509 Bytes

Versions: 105

Compression:

Stored size: 509 Bytes

Contents

module Comee
  module Core
    class Pod < ApplicationRecord
      enum :status, {draft: 0, confirmed: 1, signed: 2}
      has_many :shipment_instruction_items
      has_many :pickup_schedules
      has_many :delivery_notes
      has_many :invoices

      validates :reference_no, :status, presence: true

      def self.ransackable_attributes(_auth_object = nil)
        %w[id reference_no status]
      end

      def self.ransackable_associations(_auth_object = nil)
        []
      end
    end
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/models/comee/core/pod.rb
comee_core-0.3.61 app/models/comee/core/pod.rb
comee_core-0.3.60 app/models/comee/core/pod.rb
comee_core-0.3.59 app/models/comee/core/pod.rb
comee_core-0.3.58 app/models/comee/core/pod.rb
comee_core-0.3.57 app/models/comee/core/pod.rb
comee_core-0.3.56 app/models/comee/core/pod.rb
comee_core-0.3.55 app/models/comee/core/pod.rb
comee_core-0.3.54 app/models/comee/core/pod.rb
comee_core-0.3.53 app/models/comee/core/pod.rb
comee_core-0.3.51 app/models/comee/core/pod.rb
comee_core-0.3.50 app/models/comee/core/pod.rb
comee_core-0.3.49 app/models/comee/core/pod.rb
comee_core-0.3.48 app/models/comee/core/pod.rb
comee_core-0.3.47 app/models/comee/core/pod.rb
comee_core-0.3.46 app/models/comee/core/pod.rb
comee_core-0.3.45 app/models/comee/core/pod.rb
comee_core-0.3.44 app/models/comee/core/pod.rb
comee_core-0.3.43 app/models/comee/core/pod.rb
comee_core-0.3.42 app/models/comee/core/pod.rb