filterer 0.4.2 → 0.4.3

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: a5594041bdf01012c2ec2e828a7a553b1f211edd
4
- data.tar.gz: 6ec0e36661c373bfba1f50fed9fe092c7bfea135
3
+ metadata.gz: b96dd492a73ed7c13be50344b87d56a5600b2d4b
4
+ data.tar.gz: 8042241a505eb55ce5adb1e7b158ba2faeac7f64
5
5
  SHA512:
6
- metadata.gz: 639225bc7ff422f0079f829575d60d5baad174ec7a7a038385192a0bddde8fe51d37de3d10a1d63919c536fcb8f01f34bda502b2bf2ff2c2b9a7f46ed0d22d4e
7
- data.tar.gz: 9ee0557b354736320cd1f7f0573464fa47cf1c1cdf775a2a3be44d50e0bdb4b7c8d0f257e06714bcad685dd153af355f4b11da622652965bf53aaaee996ca5aa
6
+ metadata.gz: 4b1dfc79a3bef9c2c8583dba2221c7543d112484c4e201b8bd99117f7b109da624fdcf761fe439c79cd64abf6b07ee300363bf6d3f4a0731be1c68aaac807f14
7
+ data.tar.gz: 2bfa646276b08ec0babdb6997621c8e735d622d65658d69b687c6787d5d6f33e0843f3142d7049c4cdd0cc6b8528213a833f7e4721fa8c4f7acff2212c09e219
data/lib/filterer/base.rb CHANGED
@@ -77,7 +77,7 @@ module Filterer
77
77
 
78
78
  def get_per_page
79
79
  if self.class.per_page_allow_override && @params[:per_page].present?
80
- [@params[:per_page], self.per_page_max].min
80
+ [@params[:per_page].to_i, self.per_page_max].min
81
81
  else
82
82
  self.class.per_page
83
83
  end
@@ -1,3 +1,3 @@
1
1
  module Filterer
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filterer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Becker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails