Class: Dscf::Marketplace::Supplier

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

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



32
33
34
# File 'app/models/dscf/marketplace/supplier.rb', line 32

def self.ransackable_associations(_auth_object = nil)
  %w[business supplier_products addresses]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



28
29
30
# File 'app/models/dscf/marketplace/supplier.rb', line 28

def self.ransackable_attributes(_auth_object = nil)
  %w[id name code address contact_phone business_type business_id created_at updated_at]
end