forest_admin_datasource_active_record 1.0.0.pre.beta.92 → 1.0.0.pre.beta.93

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: ab9662ced3e0d32c7db38785aef3baac5b6f2f6427f1feedcad49c5fdcd0271d
4
- data.tar.gz: 180725b1b4539e4776d158bb470b063a30118a4166344a0178b61674ef0b62b8
3
+ metadata.gz: 9c530171f9508442c3b82e9d384d3f8d0ca565e51892f0fb0dc2c4f0c6d130f0
4
+ data.tar.gz: 70c6d67440087cf3f45a651181241b8a790559c1fd5b938b1670fdf6a23d65a2
5
5
  SHA512:
6
- metadata.gz: 7179476c5ce7da1e4c58ab5a47ea4afdee6f78a8dbe502f5b45e8362564dcc782614043b9f6d74dc730277bf9e27ef479eb4c9204e8b233e9cc6d8fcf7f03ef5
7
- data.tar.gz: 8d82020d60d7b70a53300f9a079f747cb15f6ad155ae823eab086cf31dbc2d99bd91f721c59f2d9a239689c2d980104785dd4da9dee45d4fcba0ee5469799f00
6
+ metadata.gz: ca2ef8ed92098a3e116c347428b80d5c1c091cf95c0996ecc00678c96384d7747d70d1d69686fb14c22b9292798ec79e570d60a337c484154ce5982f1e12622f
7
+ data.tar.gz: 2df9233ed4a884ed53ad910d7d371cfea6eabe1f26632e0c53a46a930ea27771cc046ba5a3064c34ef7063cab1cc4cd1cd09912aebfd669df9473ab2861f88ba
@@ -91,7 +91,7 @@ module ForestAdminDatasourceActiveRecord
91
91
  through_collection: format_model_name(association.through_reflection.klass.name)
92
92
  )
93
93
  )
94
- elsif association.inverse_of.polymorphic?
94
+ elsif association.inverse_of&.polymorphic?
95
95
  add_field(
96
96
  association.name.to_s,
97
97
  ForestAdminDatasourceToolkit::Schema::Relations::PolymorphicOneToOneSchema.new(
@@ -153,7 +153,7 @@ module ForestAdminDatasourceActiveRecord
153
153
  through_collection: format_model_name(association.through_reflection.klass.name)
154
154
  )
155
155
  )
156
- elsif association.inverse_of.polymorphic?
156
+ elsif association.inverse_of&.polymorphic?
157
157
  add_field(
158
158
  association.name.to_s,
159
159
  ForestAdminDatasourceToolkit::Schema::Relations::PolymorphicOneToManySchema.new(
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceActiveRecord
2
- VERSION = "1.0.0-beta.92"
2
+ VERSION = "1.0.0-beta.93"
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.0.0.pre.beta.92
4
+ version: 1.0.0.pre.beta.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu