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
20 21 22 23 |
# File 'app/models/dscf/core/business.rb', line 20 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
14 15 16 17 18 |
# File 'app/models/dscf/core/business.rb', line 14 def logo_url return nil unless logo.attached? Rails.application.routes.url_helpers.rails_blob_url(logo, only_path: true) end |