Class: Dscf::Core::Business
Class Method Summary
collapse
Instance Method Summary
collapse
#approved?, #build_review_for, #current_review_for, #current_status_for, #draft?, #editable?, #modification_requested?, #pending?, #rejected?, #review_for, #submitted?
Class Method Details
.ransackable_associations(_auth_object = nil) ⇒ Object
27
28
29
|
# File 'app/models/dscf/core/business.rb', line 27
def self.ransackable_associations(_auth_object = nil)
%w[user business_type documents reviews]
end
|
.ransackable_attributes(_auth_object = nil) ⇒ Object
22
23
24
25
|
# File 'app/models/dscf/core/business.rb', line 22
def self.ransackable_attributes(_auth_object = nil)
%w[business_type_id contact_email contact_phone created_at description id id_value name tin_number
updated_at user_id is_system]
end
|
Instance Method Details
#logo_url ⇒ Object
18
19
20
|
# File 'app/models/dscf/core/business.rb', line 18
def logo_url
attachment_url_for(logo)
end
|