Sha256: 12ff1a9c55fcbadde427f8011751b827e44467e99fdc46326224fceda4babe06

Contents?: true

Size: 476 Bytes

Versions: 32

Compression:

Stored size: 476 Bytes

Contents

module Comee
  module Core
    class Pod < ApplicationRecord
      enum :status, {draft: 0, confirmed: 1, signed: 2}
      has_many :shipment_instruction_items
      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

32 entries across 32 versions & 1 rubygems

Version Path
comee_core-0.2.51 app/models/comee/core/pod.rb
comee_core-0.2.50 app/models/comee/core/pod.rb
comee_core-0.2.49 app/models/comee/core/pod.rb
comee_core-0.2.48 app/models/comee/core/pod.rb
comee_core-0.2.47 app/models/comee/core/pod.rb
comee_core-0.2.46 app/models/comee/core/pod.rb
comee_core-0.2.45 app/models/comee/core/pod.rb
comee_core-0.2.44 app/models/comee/core/pod.rb
comee_core-0.2.43 app/models/comee/core/pod.rb
comee_core-0.2.42 app/models/comee/core/pod.rb
comee_core-0.2.41 app/models/comee/core/pod.rb
comee_core-0.2.40 app/models/comee/core/pod.rb
comee_core-0.2.39 app/models/comee/core/pod.rb
comee_core-0.2.38 app/models/comee/core/pod.rb
comee_core-0.2.37 app/models/comee/core/pod.rb
comee_core-0.2.36 app/models/comee/core/pod.rb
comee_core-0.2.35 app/models/comee/core/pod.rb
comee_core-0.2.34 app/models/comee/core/pod.rb
comee_core-0.2.33 app/models/comee/core/pod.rb
comee_core-0.2.32 app/models/comee/core/pod.rb