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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59b7e16a70f5f9a9defe754c36e8107ee2dbe16f1ac048926b389067c92651f3
4
- data.tar.gz: 192f9eaa768cfc4af32d6d7eeeaa7a2481e7fa90083ea4def249fd947670139e
3
+ metadata.gz: 34a2998db01b74870ab73c14aee9323623cebe03add632fe7dc14aaa0730a04c
4
+ data.tar.gz: fd7c301d3fdf9bb3d051ffe2d5a0e4ebb1083bc26a74ae4afc51f669a84bfbe7
5
5
  SHA512:
6
- metadata.gz: 6e1c7db162f8945b97b990a4967aad29ad2f48894df4f40700e8f69261c90066d190de82bae76214d6451afdeba4c4cee2d1cba5bc6f6c9cebc669f3d764a07e
7
- data.tar.gz: 2ee6d7f5f40531062bcd7ed07ad4a2abfe2688f12359f8c9c85c025cf9744878e78f21bfa0018cc6d7877458d521c05aeca03290c0ad28fe52057263a68a7dd4
6
+ metadata.gz: 192cfc40458fb3ca036c22d8d5cd256c16ea0325f8ce3593b61f5db180ca3b97427079c60cf2debfdceb1d57e19620c5ae51bee44bf6246743f7982f6e71bfab
7
+ data.tar.gz: 2581ee5aa980fab8e9847b5402c002434e1f083c85e77e478415af2664b8079bc1d117cad03a4d1353fa3889190b7597ea4bcbe3839b80c3314828ab5ef8aacb
@@ -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
- else
21
+ end
22
+
23
+ if defined?(ActionController::API)
22
24
  ActionController::API.send(:include, "PagerApi::Pagination::#{pagination_handler_name.classify}".constantize)
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module PagerApi
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
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.3.1
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-05-06 00:00:00.000000000 Z
11
+ date: 2019-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler