sortable-for-rails 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/sortable/sortable_helper.rb +3 -1
- data/sortable-for-rails.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89f9a133e5799c6aa1921f1587d24920f6c0ffd2b4f6915d2d5d0202fc09ddb4
|
4
|
+
data.tar.gz: 0f98be3337e381b2577aa4e74aca84b3f2391f407b586ab3ce35808f4250ca5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d45df6b107ff1a036f15b525a6a349d82e51928cacfa2762994607d35536748bb64f5e1f4fa0513f2df0656ef634025afe8ce2a78dc3378b22a5e6114291856
|
7
|
+
data.tar.gz: f2efbcb192059a175a0bd4848b676db2d2d845345bf8ba5d3ebb623d6eed8c28ccfee152d1729619e08209aaede60fa717881545fa7d2518c9406209324d5bd0
|
@@ -10,7 +10,9 @@ module Sortable::SortableHelper
|
|
10
10
|
new_direction = current_direction.to_s == "asc" ? "desc" : "asc"
|
11
11
|
end
|
12
12
|
|
13
|
-
|
13
|
+
url = url_for params.permit!.merge(sort: column, direction: new_direction)
|
14
|
+
|
15
|
+
link_to(url, options) do
|
14
16
|
label = block_given? ? capture(&block) : column
|
15
17
|
sortable_label_for(label, current, current_direction, scope)
|
16
18
|
end
|
data/sortable-for-rails.gemspec
CHANGED