effective_datatables 4.30.1 → 4.30.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ec07c03e5278144171de22592740123dbc4db6999d5a9e39c2d06c665e661f2
|
4
|
+
data.tar.gz: c446501978993cca11e309326b466afb9f14afe8cd41d92243099c26bfb3a0cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 549c5d46a0f4c624ed98d6cc7c986e50f1567a2617c08fc39f81eb76dda49446908d23c5d9ae40bd7e4ab6c56950a369c63f8730b8992be315bc76295c87124c
|
7
|
+
data.tar.gz: 1a1aba3d33d2160a78fb6f93755a352dbb5eb73dcadc5a83363f5b7ce21cc0ddaaa18fa497e472e538b2a9a1afa78c165c794f664b54bae193d4ce2433880bf6
|
@@ -73,11 +73,13 @@ module Effective
|
|
73
73
|
if new_index > old_index
|
74
74
|
@datatable.collection.where("#{attribute} > ? AND #{attribute} <= ?", old_index, new_index).update_all("#{attribute} = #{attribute} - 1")
|
75
75
|
@resource.update_column(attribute, new_index)
|
76
|
+
@resource.touch
|
76
77
|
end
|
77
78
|
|
78
79
|
if old_index > new_index
|
79
80
|
@datatable.collection.where("#{attribute} >= ? AND #{attribute} < ?", new_index, old_index).update_all("#{attribute} = #{attribute} + 1")
|
80
81
|
@resource.update_column(attribute, new_index)
|
82
|
+
@resource.touch
|
81
83
|
end
|
82
84
|
end
|
83
85
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_datatables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.30.
|
4
|
+
version: 4.30.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|