ocean-rails 1.18.3 → 1.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/application_helper.rb +14 -10
- data/lib/ocean/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebb6aa1d8efe39190e3c8abcce5c376ec19f1b00
|
4
|
+
data.tar.gz: 40b75bb4f6c9937beb922b8bb55f282f6ba8c1b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4052b5d872f7b81077285bd29625fc556e497451e62ffb0201585cb6463dc6692365e1b99dccfdbfa0ba4eb36bec434a0e6043653d5937d496510cfadc040c5
|
7
|
+
data.tar.gz: bf85722cacaee4abac5124cb41201e8eb67625593290917ecdaa4d41c8146dc5bf22a3b430977b6b72be46eb22129a39e48bee2c8c4fa74ec932ea4226b81a74
|
@@ -19,16 +19,20 @@ module ApplicationHelper
|
|
19
19
|
# This is needed everywhere except inside the Auth service to render creator
|
20
20
|
# and updater links correctly.
|
21
21
|
#
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
22
|
+
unless respond_to?(:api_user_url)
|
23
|
+
|
24
|
+
def api_user_url(x)
|
25
|
+
if x.blank?
|
26
|
+
"#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/0"
|
27
|
+
elsif x.is_a?(Integer)
|
28
|
+
"#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/#{x}"
|
29
|
+
elsif x.is_a?(String)
|
30
|
+
x
|
31
|
+
else
|
32
|
+
raise "api_user_url takes an integer, a string, or nil"
|
33
|
+
end
|
31
34
|
end
|
32
|
-
|
35
|
+
|
36
|
+
end
|
33
37
|
|
34
38
|
end
|
data/lib/ocean/version.rb
CHANGED