brick 1.0.174 → 1.0.175
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brick/extensions.rb +6 -5
- data/lib/brick/version_number.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 566c62de5deb537568049267ecd415bfb4f22b0343f689a5c4c819a173cc92ba
|
4
|
+
data.tar.gz: aaf90092d67a2669f64ad0ce5484196fefedb3ce666c6977d0b9b66f5fcc8739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98748d0a02f3d004963652c02d17465406fe586b9ea1bf581f55e9f3fa119d72c3edf323f1934c165059ca0088eb47c7cbe82bf9cba8799bfec83e862dcd13c9
|
7
|
+
data.tar.gz: 916e16bf303120062467e8555ca2845c9ca3e4ed752c0b95094cc556632453ae8dcb66819cb920f101d9da1abf37c57af5ace6282e39a39747f5d117460b8e2d
|
data/lib/brick/extensions.rb
CHANGED
@@ -3211,19 +3211,20 @@ module Brick
|
|
3211
3211
|
rescue
|
3212
3212
|
end
|
3213
3213
|
end
|
3214
|
-
::Brick.relations.
|
3215
|
-
|
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 =
|
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
|
-
[
|
3227
|
+
s << [v.first, table_name || v.first, migrations&.fetch(res, nil), model]
|
3227
3228
|
end
|
3228
3229
|
end
|
3229
3230
|
|
data/lib/brick/version_number.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|