Class: Comee::Core::ItemStatus
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Comee::Core::ItemStatus
- Defined in:
- app/models/comee/core/item_status.rb
Constant Summary collapse
- INITIALIZED =
"Initialized".freeze
- DELIVERY_NOTE_CREATED =
"Delivery Note Created".freeze
- COMPLETELY_PICKED_AND_PACKED =
"Completely Picked & Packed".freeze
- PARTIALLY_PICKED_AND_PACKED =
"Partially Picked & Packed".freeze
- SHIPMENT_INSTRUCTION_CREATED =
"Shipment Instruction Created".freeze
- STATUSES =
[INITIALIZED, DELIVERY_NOTE_CREATED, COMPLETELY_PICKED_AND_PACKED, PARTIALLY_PICKED_AND_PACKED, SHIPMENT_INSTRUCTION_CREATED].freeze
Class Method Summary collapse
- .ransackable_associations(_auth_object = nil) ⇒ Object
- .ransackable_attributes(_auth_object = nil) ⇒ Object
Class Method Details
.ransackable_associations(_auth_object = nil) ⇒ Object
22 23 24 |
# File 'app/models/comee/core/item_status.rb', line 22 def self.ransackable_associations(_auth_object = nil) ["shipment_item"] end |
.ransackable_attributes(_auth_object = nil) ⇒ Object
18 19 20 |
# File 'app/models/comee/core/item_status.rb', line 18 def self.ransackable_attributes(_auth_object = nil) %w[id hash_code status status_date sales_order_item_id] end |