dscf-core 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c8bc7f7428e10e98816b30968fa31e0609cba87e3292c8ad8d248f38067e578
4
- data.tar.gz: db88e3856be17b5a02d0350d28d303d3ec59abf09cf2641bae204b990bf6704c
3
+ metadata.gz: 90f19934834a6730e93e9d4e21fb09329a1c1344e89b7e4b9dbeeee31e7b2061
4
+ data.tar.gz: f37031d41b84c82e0926f23082cfaf0322155cfd1d67c84cd24ef0eeed86782b
5
5
  SHA512:
6
- metadata.gz: 1f436f1f1d10c5c8e43c6683d8d104175d480d15dab6005e7b198ef4237e9c6fee26c15ea9a17d8fba4ad0b0f14a50aecbceb735157f4103b549e1ae4cc62a06
7
- data.tar.gz: 8a4dda4a6efa99ebc8469fa9bf5ba69af0edbf3065f5c5ee288f591d2d65ee844a8bcf8d723a91bcec7840edc673c8db61584c752de63c0d1b96546b9f6af7a3
6
+ metadata.gz: 47e2043d60241b00564f1508cfe30f63e234267e47f34f67f5c61a334a85573db1a238f64d08f8bd101c7db293046813e03e405ac5d83f1b859e452115aba4c7
7
+ data.tar.gz: 88aefa2828ffa29b636bbdc499da29a149f4e073c55723f6808aa75d327770577956370885cb78ee8e241bd27c692dd2893fb72347a47eeff25b4f40bfac34ed
@@ -3,6 +3,7 @@ module Dscf
3
3
  class Business < ApplicationRecord
4
4
  belongs_to :user, class_name: "Dscf::Core::User"
5
5
  belongs_to :business_type, class_name: "Dscf::Core::BusinessType"
6
+ has_many :reviews
6
7
 
7
8
  has_one_attached :logo
8
9
 
@@ -15,6 +16,11 @@ module Dscf
15
16
 
16
17
  Rails.application.routes.url_helpers.rails_blob_url(logo, only_path: true)
17
18
  end
19
+
20
+ def self.ransackable_attributes(_auth_object = nil)
21
+ %w[business_type_id contact_email contact_phone created_at description id id_value name tin_number
22
+ updated_at user_id]
23
+ end
18
24
  end
19
25
  end
20
26
  end
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Core
3
- VERSION = "0.1.8".freeze
3
+ VERSION = "0.2.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asrat
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-09-29 00:00:00.000000000 Z
10
+ date: 2025-10-09 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails