actionset 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 +2 -0
- data/lib/action_set/version.rb +1 -1
- data/lib/action_set/view_helpers.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33155aa131204e16b7e9cfc55200f626c083ac2c
|
4
|
+
data.tar.gz: d1f28db33d960ca3eeef68b771cdcf35b3ae79cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4b84ec08e00391a874cedba4813a26a3d12c41ebe764d593e6f3d358d8f562866577d1ba02c2d2a4c5823d935a15f7fd7662ab16adc4f5105fa68b3938925b7
|
7
|
+
data.tar.gz: 341c929bef034d6480f0b40043bb5e11cfb959fecedd336926ee7e2507ea59f71abf7fe8787376a0dd9e9670019fdc125b8251b3021b7d934bd807402cb1d3bf
|
data/CHANGELOG
CHANGED
data/lib/action_set/version.rb
CHANGED
@@ -26,7 +26,7 @@ module ActionSet
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def sort_link_direction(column)
|
29
|
-
return 'asc' unless params[:sort]
|
29
|
+
return 'asc' unless params[:sort]&.keys&.include?(column.to_s)
|
30
30
|
|
31
31
|
sort_direction_inverses = { 'asc' => 'desc', 'desc' => 'asc' }
|
32
32
|
sort_direction_inverses[params.dig(:sort, column)]
|