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: f4ce0a746fa95f37caaf6f818de7689f4cc9dc75
4
- data.tar.gz: 82547fde079e25411243830d6cefd4230708bfdf
3
+ metadata.gz: d82d40c4f3ca85bbc6ce70af6531289c0b2a0bbb
4
+ data.tar.gz: 41745c046357c38f0a226f333e75e570c9e0878d
5
5
  SHA512:
6
- metadata.gz: bd206fcde2f98af177c21d6ae2ed8698c343a71eec604ff26cbeaeedb8e462d230fde2d31b56fd0099b86f1525f259c43285d26d6923826b4b595948ecf56d89
7
- data.tar.gz: 28d4b0d1ae5d1a20eba442895111524d77e4bbed6850661403a96ecb76628a564b7620522543ff61b94ed76421a83a1a58558ef42125814d9dd8d2427483ef36
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
- (@engine_namespace || @template).url_for @params.merge(@param_name => (page <= 1 ? nil : page))
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, options)
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, options) : c
24
+ c.respond_to?(:count) ? c.count(column_name) : c
25
25
  end
26
26
  end
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module BootstrapPager
2
- VERSION = '0.10.1'
2
+ VERSION = '0.11.0'
3
3
  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.10.1
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-01-29 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport