ocean-rails 5.6.0 → 5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/ocean_application_controller.rb +2 -2
- data/lib/ocean/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: dd254ebe68959d2d33f6ad3c0907b02078d70598
|
4
|
+
data.tar.gz: 7e6b4813a48ee9fdf65087b2f0e72a529c5632cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a687103ddeedbc2845945f728d948c77026cfb732085597882d6e798b1690cad766513933ef163465ac8f42e70fb6383f29b81dffd58f79eaaac49312b5183f0
|
7
|
+
data.tar.gz: 47477f52e6e3220e567afe338369a793a2302e93e55c7c72c8aa1e30b4380fa51795b0a011268fc6877a6f3587275a1b5c0a7282ce779dcf369c446f0537e3d0
|
@@ -188,8 +188,8 @@ module OceanApplicationController
|
|
188
188
|
last_page = total_pages - 1
|
189
189
|
prev_page = page > 0 && page - 1
|
190
190
|
next_page = page < last_page && page + 1
|
191
|
-
links['first_page'] = {href: url_for(params.merge(page: 0)), type: 'application/json'}
|
192
|
-
links['last_page'] = {href: url_for(params.merge(page: last_page)), type: 'application/json'}
|
191
|
+
links['first_page'] = {href: url_for(params.merge(page: 0)), type: 'application/json'} if page > 0
|
192
|
+
links['last_page'] = {href: url_for(params.merge(page: last_page)), type: 'application/json'} if page < last_page
|
193
193
|
links['previous_page'] = {href: url_for(params.merge(page: prev_page)), type: 'application/json'} if prev_page
|
194
194
|
links['next_page'] = {href: url_for(params.merge(page: next_page)), type: 'application/json'} if next_page
|
195
195
|
end
|
data/lib/ocean/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|