Class: Comee::Core::ProductLookup

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

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



15
16
17
# File 'app/models/comee/core/product_lookup.rb', line 15

def self.ransackable_associations(_auth_object = nil)
  %w[product]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



11
12
13
# File 'app/models/comee/core/product_lookup.rb', line 11

def self.ransackable_attributes(_auth_object = nil)
  %w[id code item_description itemable_id itemable_type product_id aliases]
end