Class: Comee::Core::StockTransferRequestItem
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Comee::Core::StockTransferRequestItem
- Defined in:
- app/models/comee/core/stock_transfer_request_item.rb
Class Method Summary collapse
- .ransackable_associations(_auth_object = nil) ⇒ Object
- .ransackable_attributes(_auth_object = nil) ⇒ Object
Instance Method Summary collapse
Class Method Details
.ransackable_associations(_auth_object = nil) ⇒ Object
17 18 19 |
# File 'app/models/comee/core/stock_transfer_request_item.rb', line 17 def self.ransackable_associations(_auth_object = nil) %w[sales_order_item stock_transfer_request] end |
.ransackable_attributes(_auth_object = nil) ⇒ Object
13 14 15 |
# File 'app/models/comee/core/stock_transfer_request_item.rb', line 13 def self.ransackable_attributes(_auth_object = nil) %w[created_at id id_value quantity sales_order_item_id stock_transfer_request_id updated_at] end |
Instance Method Details
#product ⇒ Object
9 10 11 |
# File 'app/models/comee/core/stock_transfer_request_item.rb', line 9 def product sales_order_item.product end |