positioning 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/positioning/healer.rb +2 -2
- data/lib/positioning/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 276386e9beb6287e8a41c53eb5dd126a32026c925efbd4747e4a3350ad42b324
|
4
|
+
data.tar.gz: b547a1e30050859c4a85a51f3853a94c04e9c959405f206578dccf264ee91c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0827cf02ca0e2613eff985b05a05fd047b814245cccf4a4eb6af202726fe2768851b5f06abcf1dbd21362d99ccfc5e244ee6db46af3d7cc597ff060d1faa4cb0'
|
7
|
+
data.tar.gz: 7a8852c7ac8cdd0a4f334492eda3dd63cf8275410bb41b39d9616b9297cd97fdac2c6f30832b40f1c4faf67c5a0133afae63596f97dd527a831cf8054c6239a7
|
data/CHANGELOG.md
CHANGED
data/lib/positioning/healer.rb
CHANGED
@@ -8,7 +8,7 @@ module Positioning
|
|
8
8
|
|
9
9
|
def heal
|
10
10
|
if scope_columns.present?
|
11
|
-
@model.
|
11
|
+
@model.unscope(:order).reselect(*scope_columns).distinct.each do |scope_record|
|
12
12
|
@model.transaction do
|
13
13
|
if scope_associations.present?
|
14
14
|
scope_associations.each do |scope_association|
|
@@ -40,7 +40,7 @@ module Positioning
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def sequence(scope)
|
43
|
-
scope.reorder(@order).each.with_index(1) do |record, index|
|
43
|
+
scope.unscope(:select).reorder(@order).each.with_index(1) do |record, index|
|
44
44
|
record.update_columns @column => index
|
45
45
|
end
|
46
46
|
end
|
data/lib/positioning/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: positioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendon Muir
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|