effective_datatables 4.30.1 → 4.30.2

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: 101202eb8e7251895835506090dbee19f994e4db1bed1ba263f8bed9226c45de
4
- data.tar.gz: c10bbed1cddf86a46782924d42eb1a081eb4fef692a9eb1a4ab9e76520522c4a
3
+ metadata.gz: 9ec07c03e5278144171de22592740123dbc4db6999d5a9e39c2d06c665e661f2
4
+ data.tar.gz: c446501978993cca11e309326b466afb9f14afe8cd41d92243099c26bfb3a0cc
5
5
  SHA512:
6
- metadata.gz: ac57919edf6575dc47ed971f8cec6d60afa6783095f2098cafa8d89ba43cad4283c87bafcef402880fdac90a5d91c2b00a887753da11cbbf77b82f8e9325be23
7
- data.tar.gz: 505c45e8a0034dda6a99120f65cabf601886627bac22c23148cc4cd7fc217c1c08235ba92d65522064eeaa014c7c18a179ca9d711585093309cbb1897d956bdb
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.30.1'.freeze
2
+ VERSION = '4.30.2'.freeze
3
3
  end
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.1
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-09-23 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails