pager_api 0.2.2 → 0.2.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: 7248e4c23399c330bae0de8da09d9e8b4115e214
4
- data.tar.gz: 06ff7089a5b7bd66fcf555d097d46ff11eea73f9
3
+ metadata.gz: 272db02b4f76bb3d1c27698b101212271e0ca95a
4
+ data.tar.gz: 0d2b0907296dcee0df9cd8ddbabf812ac0bda525
5
5
  SHA512:
6
- metadata.gz: 1596494a432db54b754520b5759a1b055a7512b69bcb548ff8acf0d9c06f7c25a5d041049b15e8b73b4b82f578972cc69dd6947af4a564316ffb2c365903bbe2
7
- data.tar.gz: 9ceece819f15950acf2b78183e1f2176eabe3c93d56c13d486d1d0a9ae1021329481e64927d08dde64d0aa3394ca7688c28e09fcca145b2d335a0bd73159707f
6
+ metadata.gz: 48ed3858e051626ed9b2ecb90bdb7c39e26b59fad9c0e253d9682a8729d11e17dbd3f6867c872aced89bf4056c54d3bff07985b637865ddb2278c5ce62b75707
7
+ data.tar.gz: 82f236a90b30831be1c9200483679dd18c17dfe945a418fda13191ea58ef9ba67f5693192dbc2fbac110711c73454a589f1c76cdcd938ff45aac62039ba7c3d7
@@ -63,7 +63,7 @@ module PagerApi
63
63
 
64
64
  def paginate_collection(collection, options = {})
65
65
  options[:page] = params[:page] || 1
66
- options[:per_page] = options.delete(:per_page) || params[:per_page]
66
+ options[:per_page] = options.delete(:per_page) || params[:per_page] || ::Kaminari.config.default_per_page
67
67
 
68
68
  collection.page(options[:page]).per(options[:per_page])
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module PagerApi
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pager_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abraham Kuri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-07 00:00:00.000000000 Z
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler