Class: Dscf::Core::Business
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Dscf::Core::Business
- Defined in:
- app/models/dscf/core/business.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.ransackable_attributes(_auth_object = nil) ⇒ Object
19 20 21 22 |
# File 'app/models/dscf/core/business.rb', line 19 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] end |
Instance Method Details
#logo_url ⇒ Object
13 14 15 16 17 |
# File 'app/models/dscf/core/business.rb', line 13 def logo_url return nil unless logo.attached? Rails.application.routes.url_helpers.rails_blob_url(logo, only_path: true) end |