active_scaffold_batch 3.4.4 → 3.4.5
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: bad88227a4ac0b2587bb9c0cb3655fae85875efa4b6118c46ff20ca05339df6e
|
|
4
|
+
data.tar.gz: 710149c54582c7105cbd01b618e5bcdd74da32c8a554f2d5e5509ecb8b06aeb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7c94c565133d16d892545a4389eb1f7ebfafe390e1fbbc83c200178da4b18ca49ac5a85371cdac0e9d36a0498436c2364875cb72d4747e96076261cdb809895
|
|
7
|
+
data.tar.gz: 856bd4207754a2db7488d5e687b49bc6d361e741285784aeba73079fe76be281ec5502b2b66b25f22803cc76c02ff17ef795584bbd192e95cb8055904a3f1af5
|
|
@@ -244,7 +244,7 @@ module ActiveScaffold::Actions
|
|
|
244
244
|
current_value = record.send(column.name)
|
|
245
245
|
{"number"=>"", "unit"=>"DAYS", "value"=>"November 16, 2010", "operator"=>"REPLACE"}
|
|
246
246
|
if ActiveScaffold::Actions::BatchUpdate::GenericOperators.include?(calculation_info[:operator]) || ActiveScaffold::Actions::BatchUpdate::DateOperators.include?(calculation_info[:operator])
|
|
247
|
-
operand = self.class.condition_value_for_datetime(calculation_info[:value], column.column.type == :date ? :to_date : :to_time)
|
|
247
|
+
operand = self.class.condition_value_for_datetime(column, calculation_info[:value], column.column.type == :date ? :to_date : :to_time)
|
|
248
248
|
case calculation_info[:operator]
|
|
249
249
|
when 'REPLACE' then operand
|
|
250
250
|
when 'NULL' then nil
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_scaffold_batch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergio Cambra
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-
|
|
12
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|