active_scaffold 3.7.12 → 3.7.13

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: 0ab6174a908369ed7071d91754c982eb08404643e4fb4df6e8f1a5671ba2671d
4
- data.tar.gz: 4dc900e33aeebc279e50d0cf2db26a327c241b84fc4c3cace3a5da981151dba4
3
+ metadata.gz: 2583efed23e74b287d99327c464365ad4d3c5ae4a3ecb83ad166b7f317a5b481
4
+ data.tar.gz: b8af18cae1123eaf18b9a623b76581f0135505287d9c131972c4bbff6fa540f2
5
5
  SHA512:
6
- metadata.gz: d4c3ae4876dfcd281c0d1b676c7af0eee264745fbbc3509f400eb54d46bdc2c08e707536eb6753dfe31387a877f5a8929975c20ab017bc7d9e503764f4c6f14c
7
- data.tar.gz: 7687567e96978e4a6903a8a6e6e335db842fb1926bb92739c0b2eecb1db19aa5e2c4c4983f285277986fb06d975f6143591e4c26bd24489da40dccbe89709b10
6
+ metadata.gz: 469760ee680b424a3c6b08824dd7eaec24fef0ff1169f9ffa21b9406619fa996a24f566f47d84c900a06a783fa2b2d9fcdd452fe4d9973327a603b0b9af2a23a
7
+ data.tar.gz: 0626fcd6a0416f413ea39825697590d42284cec6d62b62184e1487d0d88d72928ef1a06d7a215a193a871a48cc06c55cfe01531f384ba27d1c5faa63cf315bd8
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ = 3.7.13
2
+ - Fix :select form_ui on column using SQL in sort_by, such as 'table.user_id IS NULL'
3
+
1
4
  = 3.7.12
2
5
  - Fix using update_columns in field search with search UI submitting a hash, such as date fields
3
6
  - Support disabling update_columsns on field_search
@@ -42,7 +42,7 @@ module ActiveScaffold
42
42
  if column&.sort && column.sort&.dig(:sql)
43
43
  # with threasafe enabled, column.sort[:sql] returns proxied strings and
44
44
  # regexp capture won't work, which rails uses internally, so to_s is needed
45
- relation = relation.order(Array(column.sort[:sql]).map(&:to_s))
45
+ relation = relation.order(Array(column.sort[:sql]).map { |sql| Arel.sql(sql.to_s) })
46
46
  end
47
47
  relation = yield(relation) if block_given?
48
48
  relation.to_a
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 7
5
- PATCH = 12
5
+ PATCH = 13
6
6
  FIX = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, FIX].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.12
4
+ version: 3.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Many, see README
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-26 00:00:00.000000000 Z
11
+ date: 2025-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails