bolter 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bolter/helpers.rb +1 -1
- data/lib/bolter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b76b1689058572beb35ed7d7d429a505d276592c
|
4
|
+
data.tar.gz: 5157b60b85ab601d8e8b7eb34317de3bc1c94e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f985bc0fdd139950083dc77f482e6233ead0d305e99bc1bf5df38486f4ed409eda3191fb33fe461445a84aa149a982e78a2e82317022180a105ec3899c1b875a
|
7
|
+
data.tar.gz: 1042e730317fd5fbfc648dfa5c0b97438e9ccbe76ced2a3a73a50e36ca75653d501b690bf4e682b9ebd4b3c6d425c83c45eb6cd35d24899946afad1a1025606d
|
data/lib/bolter/helpers.rb
CHANGED
@@ -7,7 +7,7 @@ module Bolter
|
|
7
7
|
direction = direction == 'asc' ? 'desc' : 'asc'
|
8
8
|
title = text || scope
|
9
9
|
title = title + "#{direction == 'asc' ? '▲' : '▼'}" if scope_name.to_s == current_field and params[as].present?
|
10
|
-
link_to title.html_safe, url_for(params.merge(Hash[as, "#{scope_name}:#{direction}"])), options
|
10
|
+
link_to title.html_safe, url_for(params.permit(:sorting).merge(Hash[as, "#{scope_name}:#{direction}"])), options
|
11
11
|
end
|
12
12
|
end
|
13
13
|
module FormHelper
|
data/lib/bolter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bolter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeniy Shurmin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|