bootstrap_pager 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d82d40c4f3ca85bbc6ce70af6531289c0b2a0bbb
|
4
|
+
data.tar.gz: 41745c046357c38f0a226f333e75e570c9e0878d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00cbad9105ced71156539ef6257580b8a7edcaab3346214002229377887676709030fefa060d5a5a82164a245a55726a7befd4374510cc498fd1c3c6485d6768
|
7
|
+
data.tar.gz: 895c7a8a82eead75625b5c84e68fb6086207f540a1f4fd53b525a6acb2854a0cf27dad8933e833be256fc1139281669e12d03b114656da6c72b88356ba970211
|
@@ -26,7 +26,9 @@ module BootstrapPager
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def page_url_for(page)
|
29
|
-
|
29
|
+
opts = @params.merge(@param_name => (page <= 1 ? nil : page))
|
30
|
+
opts.permit!
|
31
|
+
(@engine_namespace || @template).url_for opts
|
30
32
|
end
|
31
33
|
end
|
32
34
|
|
@@ -17,11 +17,11 @@ module BootstrapPager
|
|
17
17
|
c = c.except(:includes) unless references_eager_loaded_tables?
|
18
18
|
|
19
19
|
# .group returns an OrderedHash that responds to #count
|
20
|
-
c = c.count(column_name
|
20
|
+
c = c.count(column_name)
|
21
21
|
if c.is_a?(Hash) || c.is_a?(ActiveSupport::OrderedHash)
|
22
22
|
c.count
|
23
23
|
else
|
24
|
-
c.respond_to?(:count) ? c.count(column_name
|
24
|
+
c.respond_to?(:count) ? c.count(column_name) : c
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_pager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen Lundgren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|