api-pagination 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api-pagination.rb +2 -2
- data/lib/api-pagination/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: 6f6ccb55a817446accc21e10ff030b9ee40e4af2
|
4
|
+
data.tar.gz: a562df84550d1521fa5dffcc6459e3ce5ad18038
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f3c3ed499e25e73ac61845e36f6c8de82c59cba53298a4d25443b68d51a69e5ae747afeff3c8c34562b1752f29f96c49b5e5d74ba51a7b01dda659e3907ca5
|
7
|
+
data.tar.gz: d30c8b948d7f21b69745d3e00b29e81fe82ef34f7c101a197604823ec2f33c920f2ac70a182250f87a714b139dd4abfbb40282f68d922bc1a76f480d68a40d63
|
data/lib/api-pagination.rb
CHANGED
@@ -33,8 +33,8 @@ module ApiPagination
|
|
33
33
|
|
34
34
|
def total_from(collection)
|
35
35
|
case ApiPagination.paginator
|
36
|
-
when :kaminari then collection.total_count
|
37
|
-
when :will_paginate then collection.total_entries
|
36
|
+
when :kaminari then collection.total_count.to_s
|
37
|
+
when :will_paginate then collection.total_entries.to_s
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api-pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|