forest_admin_datasource_active_record 1.28.2 → 1.29.0
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: a50a709790aa7e98a1eb68e54edfdc917797cd67b81d8d7a677655231ade971e
|
|
4
|
+
data.tar.gz: 5aa6f1c3e7e01cf5b680aa80f82379e27808e9d1296bddf0938faca2359ce34b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ca9a23e4872f57c13b8d268b75f3b8c038a1be017eacc04b2e3e7686ae2539c16324ed5d4761a5c238839c329b6a40a5fca37ec22e59eb13117e468f0197204
|
|
7
|
+
data.tar.gz: 28e4ed274ad20e614829378fb39947219ecc793e03a8e42f67d452ff3beeb835da9fe339176caf4cfbae5c47f87867cd9e1cc56c1748751750b4bb1503008c48
|
|
@@ -2,6 +2,7 @@ module ForestAdminDatasourceActiveRecord
|
|
|
2
2
|
module Parser
|
|
3
3
|
module Validation
|
|
4
4
|
include ForestAdminDatasourceToolkit::Components::Query::ConditionTree
|
|
5
|
+
|
|
5
6
|
def get_validations(column)
|
|
6
7
|
validations = []
|
|
7
8
|
# NOTICE: Do not consider validations if a before_validation Active Records
|
|
@@ -44,8 +44,8 @@ module ForestAdminDatasourceActiveRecord
|
|
|
44
44
|
rows.map do |row|
|
|
45
45
|
{
|
|
46
46
|
'value' => row.send(@operation.to_sym),
|
|
47
|
-
'group' => @aggregation.groups.
|
|
48
|
-
|
|
47
|
+
'group' => @aggregation.groups.to_h do |group|
|
|
48
|
+
[group[:field], row.send(group[:field].to_sym)]
|
|
49
49
|
end
|
|
50
50
|
}
|
|
51
51
|
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.
|
|
4
|
+
version: 1.29.0
|
|
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: 2026-05-
|
|
12
|
+
date: 2026-05-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|