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 +4 -4
- data/lib/pager_api/pagination/kaminari.rb +1 -1
- data/lib/pager_api/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: 272db02b4f76bb3d1c27698b101212271e0ca95a
|
4
|
+
data.tar.gz: 0d2b0907296dcee0df9cd8ddbabf812ac0bda525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/pager_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|