forest_admin_datasource_active_record 1.14.1 → 1.14.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f9af86ad7f57b450c0e780e0df0ff4c6b3d8a76e6974f3e2f05356a8662f9bd
|
|
4
|
+
data.tar.gz: 43e986234e5b73a2feeda31b1d7d5baf38ef868ba1ae0549b4e37f45a2db7d90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fec9e98866cbe2b4e99d87fb39a779f137bce25b4ca63dd9065bf89014172d6f690da77d59890408f9b26f9ba0fc422c725b3daff16857deabced91fec46a5d
|
|
7
|
+
data.tar.gz: c695dba049358d02ca30eae1924841958dc67097370447e2579e7e895e45b592c2629c5657ea70e7f9f11d4f79eb79f07249bcb132623beb4fcfd36528650d22
|
|
@@ -208,6 +208,12 @@ module ForestAdminDatasourceActiveRecord
|
|
|
208
208
|
)
|
|
209
209
|
)
|
|
210
210
|
end
|
|
211
|
+
rescue StandardError => e
|
|
212
|
+
logger = ActiveSupport::Logger.new($stdout)
|
|
213
|
+
logger.warn(
|
|
214
|
+
"[ForestAdmin] Unable to process association '#{association.name}' " \
|
|
215
|
+
"in model '#{@model.name}': #{e.message}. Skipping this association."
|
|
216
|
+
)
|
|
211
217
|
end
|
|
212
218
|
end
|
|
213
219
|
# rubocop:enable Metrics/BlockNesting
|
|
@@ -15,6 +15,8 @@ module ForestAdminDatasourceActiveRecord
|
|
|
15
15
|
def polymorphic?(association)
|
|
16
16
|
(association.options.key?(:polymorphic) && association.options[:polymorphic]) ||
|
|
17
17
|
association.inverse_of&.polymorphic?
|
|
18
|
+
rescue StandardError
|
|
19
|
+
false
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
def get_class(association)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_admin_datasource_active_record
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.14.
|
|
4
|
+
version: 1.14.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthieu
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2025-11-
|
|
12
|
+
date: 2025-11-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|