pager_api 0.3.1 → 0.3.2
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/hooks.rb +3 -1
- data/lib/pager_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a2998db01b74870ab73c14aee9323623cebe03add632fe7dc14aaa0730a04c
|
4
|
+
data.tar.gz: fd7c301d3fdf9bb3d051ffe2d5a0e4ebb1083bc26a74ae4afc51f669a84bfbe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 192cfc40458fb3ca036c22d8d5cd256c16ea0325f8ce3593b61f5db180ca3b97427079c60cf2debfdceb1d57e19620c5ae51bee44bf6246743f7982f6e71bfab
|
7
|
+
data.tar.gz: 2581ee5aa980fab8e9847b5402c002434e1f083c85e77e478415af2664b8079bc1d117cad03a4d1353fa3889190b7597ea4bcbe3839b80c3314828ab5ef8aacb
|
data/lib/pager_api/hooks.rb
CHANGED
@@ -18,6 +18,8 @@ require "pager_api/pagination/#{pagination_handler_name}"
|
|
18
18
|
|
19
19
|
if defined?(ActionController::Base)
|
20
20
|
ActionController::Base.send(:include, "PagerApi::Pagination::#{pagination_handler_name.classify}".constantize)
|
21
|
-
|
21
|
+
end
|
22
|
+
|
23
|
+
if defined?(ActionController::API)
|
22
24
|
ActionController::API.send(:include, "PagerApi::Pagination::#{pagination_handler_name.classify}".constantize)
|
23
25
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abraham Kuri
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|