positioning 0.1.0 → 0.1.1
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/Gemfile.lock +1 -1
- data/lib/positioning/mechanisms.rb +2 -6
- data/lib/positioning/version.rb +1 -1
- data/lib/positioning.rb +4 -0
- 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: e0d883985a674ffd2262b5ae6fbfa004cdeb21f76cb4f47b293c252498abf047
|
4
|
+
data.tar.gz: 6b2e92166a991cc255e9db3eacd1f3a504e165033d5351285c6200e6a4e44f78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a21c3d4429ba5bb280490e555781023a4062df76760d37ae77c073cacb8e875c3a57e9735f15e042d9ed63445865ce1bddf4e52ef3a6db79896945fd8b417e2
|
7
|
+
data.tar.gz: 658091668c0a500dddd65275bfabc4506358fce770cc6b9a01026f7803d26a10386e37fec883a13a96e3f42be8d879d936efafec5127880b9e55fa5ca62ee0d2
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -147,15 +147,11 @@ module Positioning
|
|
147
147
|
end
|
148
148
|
|
149
149
|
def positioning_columns
|
150
|
-
|
150
|
+
base_class.positioning_columns[@column]
|
151
151
|
end
|
152
152
|
|
153
153
|
def positioning_scope
|
154
|
-
@positioned.
|
155
|
-
positioning_columns.to_h { |scope_component|
|
156
|
-
[scope_component, @positioned.send(scope_component)]
|
157
|
-
}
|
158
|
-
).order(@column)
|
154
|
+
base_class.where(@positioned.slice(*positioning_columns)).order(@column)
|
159
155
|
end
|
160
156
|
|
161
157
|
def in_positioning_scope?
|
data/lib/positioning/version.rb
CHANGED
data/lib/positioning.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.1.
|
4
|
+
version: 0.1.1
|
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-02-
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|