Class: Dscf::Marketplace::SubSupplier

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

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



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

def self.ransackable_associations(_auth_object = nil)
  %w[supplier business_license_attachment business_license_blob]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object

Ransack



23
24
25
26
# File 'app/models/dscf/marketplace/sub_supplier.rb', line 23

def self.ransackable_attributes(_auth_object = nil)
  %w[id supplier_id business_name contact_person_name contact_person_phone
     city sub_city woreda code created_at updated_at]
end