Class: Comee::Core::StoreItem

Inherits:
ApplicationRecord show all
Defined in:
app/models/comee/core/store_item.rb

Class Method Summary collapse

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