Class: Comee::Core::StoreItem
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Comee::Core::StoreItem
- Defined in:
- app/models/comee/core/store_item.rb
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
13 14 15 |
# File 'app/models/comee/core/store_item.rb', line 13 def self.ransackable_associations(_auth_object = nil) %w[product store] end |
.ransackable_attributes(_auth_object = nil) ⇒ Object
9 10 11 |
# File 'app/models/comee/core/store_item.rb', line 9 def self.ransackable_attributes(_auth_object = nil) %w[created_at id id_value product_id quantity reorder_threshold store_id updated_at] end |