forest_admin_datasource_customizer 1.0.0.pre.beta.72 → 1.0.0.pre.beta.73

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: d87a2beab2434ed7e6bbbea36b416894d9a8434f7b848b41d3bfafc252810d54
4
+ data.tar.gz: 5c6fd553fbe2f7605d6140545c9cfc4477e620c41a3ef80c132140249d60d318
5
5
  SHA512:
6
- metadata.gz: 7198979d8381dd56cce59bbe447fb51a9132d4d635d6fa4673b5b6cbee55eab1e0d65ff0c249b2fa6f6706a2cb4e2079401f10c001352fe0f17735a36b6ce4ac
7
- data.tar.gz: b9296fc4ed968c4d42c0b978e772807f758f0a81ec09a6662c5bb49dd97b2364b64a6ff5fd3265870e965779a0b08a32cacb4dd8f61c5876cd82890fd7aa2127
6
+ metadata.gz: f5b8b268a153d3c22325ed24153a13217813625a71598f626cb5a617a8d99238f240e90241aa0b3386bed471e706c51278a1809d83cbdd3e660c657c3500623b
7
+ data.tar.gz: 1473d96b63ea47d0ccebcea540e526339f8a201d12e6f6e5dbd636525e3ad0acbbedc51cdbb2b908b54f6cc525ca0c37fb378dc6e589199d9b8e732c46f494c4
@@ -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.73"
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.73
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