Class: Dscf::Marketplace::SubSupplierProduct

Inherits:
ApplicationRecord show all
Defined in:
app/models/dscf/marketplace/sub_supplier_product.rb

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



18
19
20
# File 'app/models/dscf/marketplace/sub_supplier_product.rb', line 18

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

.ransackable_attributes(_auth_object = nil) ⇒ Object



14
15
16
# File 'app/models/dscf/marketplace/sub_supplier_product.rb', line 14

def self.ransackable_attributes(_auth_object = nil)
  %w[id sub_supplier_id product_id sub_supplier_price aggregator_price quantity listed created_at updated_at]
end