Class: Dscf::Marketplace::SubSupplier

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

Class Method Summary collapse

Instance 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[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 business_name contact_person_name contact_person_phone
     city sub_city woreda code created_at updated_at]
end

Instance Method Details

#business_license_urlObject



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

def business_license_url
  attachment_url_for(business_license)
end