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: 2104fd819189def35b7af7020d3823449a4db8b302269795f02092dca19e0f5d
4
- data.tar.gz: e6f0a55c825a3087db733b7fbde74e88444771c28add933e4a336fbb416cf692
3
+ metadata.gz: 4f9af86ad7f57b450c0e780e0df0ff4c6b3d8a76e6974f3e2f05356a8662f9bd
4
+ data.tar.gz: 43e986234e5b73a2feeda31b1d7d5baf38ef868ba1ae0549b4e37f45a2db7d90
5
5
  SHA512:
6
- metadata.gz: c87bc99dfaefdc9939d9afa1d29d183e6fd1369055b09befa2e7302ac235afe80db00ac85315a237ab86434e4225265b198124b7d17eec1886a991373635a09c
7
- data.tar.gz: 216109fe5d88bc4543d34840350ed540eac3b6f5c0a9b3d4219a3f1f6b34ae8742eee8001da5731310a0967f313d3bbc73a57bfcfee47075539384fa51a67748
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)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceActiveRecord
2
- VERSION = "1.14.1"
2
+ VERSION = "1.14.2"
3
3
  end
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.1
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-07 00:00:00.000000000 Z
12
+ date: 2025-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord