brick 1.0.174 → 1.0.175

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: 0c4dedcd4841e168876c88839c56a60b23a8d3d8799a350dc9d2445cde293b5e
4
- data.tar.gz: 46063c6afaf4d2025c1f1b3e74481391a737ab00a710b0e1ef0e51aac3994871
3
+ metadata.gz: 566c62de5deb537568049267ecd415bfb4f22b0343f689a5c4c819a173cc92ba
4
+ data.tar.gz: aaf90092d67a2669f64ad0ce5484196fefedb3ce666c6977d0b9b66f5fcc8739
5
5
  SHA512:
6
- metadata.gz: 61b711584141e7625b996cf0406a4b50bc6fadb45379d6d321e94fed7b2b219a90d3007ac52514ed29316caacd5150d57bebff3ac7a92e059ed69b01c8f992c5
7
- data.tar.gz: 88c00b72167ec0dddfa525937dcd9e6451fec52f85a64d91de46ad53d073a8d12c3f38e44e093b01f30a22fc56ef363a60d70f416dbca5329b5350965d5666d4
6
+ metadata.gz: 98748d0a02f3d004963652c02d17465406fe586b9ea1bf581f55e9f3fa119d72c3edf323f1934c165059ca0088eb47c7cbe82bf9cba8799bfec83e862dcd13c9
7
+ data.tar.gz: 916e16bf303120062467e8555ca2845c9ca3e4ed752c0b95094cc556632453ae8dcb66819cb920f101d9da1abf37c57af5ace6282e39a39747f5d117460b8e2d
@@ -3211,19 +3211,20 @@ module Brick
3211
3211
  rescue
3212
3212
  end
3213
3213
  end
3214
- ::Brick.relations.map do |k, v|
3215
- # next if Brick.config.exclude_tables.include?(k)
3214
+ ::Brick.relations.each_with_object([]) do |v, s|
3215
+ next if v.first.is_a?(Symbol) # ||
3216
+ # Brick.config.exclude_tables.include?(v.first)
3216
3217
 
3217
- tbl_parts = k.split('.')
3218
+ tbl_parts = v.first.split('.')
3218
3219
  tbl_parts.shift if ::Brick.apartment_multitenant && tbl_parts.length > 1 && tbl_parts.first == ::Brick.apartment_default_tenant
3219
3220
  res = tbl_parts.join('.')
3220
3221
  table_name = (model = models[res])&.last&.table_name
3221
3222
  table_name ||= begin
3222
- v[:class_name].constantize.table_name
3223
+ v.last[:class_name].constantize.table_name
3223
3224
  rescue
3224
3225
  end
3225
3226
  model = model.first if model.is_a?(Array)
3226
- [k, table_name || k, migrations&.fetch(res, nil), model]
3227
+ s << [v.first, table_name || v.first, migrations&.fetch(res, nil), model]
3227
3228
  end
3228
3229
  end
3229
3230
 
@@ -5,7 +5,7 @@ module Brick
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 174
8
+ TINY = 175
9
9
 
10
10
  # PRE is nil unless it's a pre-release (beta, RC, etc.)
11
11
  PRE = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.174
4
+ version: 1.0.175
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorin Thwaits
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-14 00:00:00.000000000 Z
11
+ date: 2023-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord