forest_admin_datasource_customizer 1.0.0.pre.beta.72 → 1.0.0.pre.beta.74

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 658c563d6a1a05ba3895d6ee03f130816566313ca15c3db156d729bac9c6f309
4
- data.tar.gz: 67b1718e466dde2ec435a41d5a86f98d3265cd1ee0208336c7e5cc469875e1e1
3
+ metadata.gz: bf679183775153a49d7b5e2fef5efde165f37c025c2953062f016b0ccec4718a
4
+ data.tar.gz: a596c2c2747260b156869ed611e530dde45d35d01e76982ac8bdcc5df68a828a
5
5
  SHA512:
6
- metadata.gz: 7198979d8381dd56cce59bbe447fb51a9132d4d635d6fa4673b5b6cbee55eab1e0d65ff0c249b2fa6f6706a2cb4e2079401f10c001352fe0f17735a36b6ce4ac
7
- data.tar.gz: b9296fc4ed968c4d42c0b978e772807f758f0a81ec09a6662c5bb49dd97b2364b64a6ff5fd3265870e965779a0b08a32cacb4dd8f61c5876cd82890fd7aa2127
6
+ metadata.gz: 86dd19341cf5abb6050103202b3a242f2c71a4baa2de5c28056479cd1dfed7887af124a0c07f504048210beff4c6f907ad0222d7a82ed664376b9af11b721e05
7
+ data.tar.gz: 10e2709dc13fdef43ccbdd650b90c9257eae1923160744f77ccf6de8b58a829cd35387f2a833b91a39a62689f1966352fd600c05ce98e24266b862c201aa31d7
@@ -18,7 +18,7 @@ module ForestAdminDatasourceCustomizer
18
18
  end
19
19
 
20
20
  def static_form?
21
- return form&.all?(&:static?) && form&.none? { |field| field.type == 'Layout' } if form
21
+ return form&.all?(&:static?) if form
22
22
 
23
23
  true
24
24
  end
@@ -42,6 +42,10 @@ module ForestAdminDatasourceCustomizer
42
42
  @fields = instantiate_subfields(options[:fields] || [])
43
43
  end
44
44
 
45
+ def static?
46
+ super && fields&.all?(&:static?)
47
+ end
48
+
45
49
  private
46
50
 
47
51
  def validate_fields_presence!(options)
@@ -77,6 +81,10 @@ module ForestAdminDatasourceCustomizer
77
81
  @elements = instantiate_elements(options[:elements] || [])
78
82
  end
79
83
 
84
+ def static?
85
+ super && elements&.all?(&:static?)
86
+ end
87
+
80
88
  private
81
89
 
82
90
  def validate_elements_presence!(options)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceCustomizer
2
- VERSION = "1.0.0-beta.72"
2
+ VERSION = "1.0.0-beta.74"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_customizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.72
4
+ version: 1.0.0.pre.beta.74
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: 2024-10-09 00:00:00.000000000 Z
12
+ date: 2024-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport