ocean-rails 1.18.7 → 1.18.8
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 +10 -14
- data/lib/ocean/engine.rb +2 -0
- 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: f723a5789804d1b39bb4397d61b7ec794102b403
|
4
|
+
data.tar.gz: b12da0d1f18218b212734998cd21b2274b7d55d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 142402aad49ef24e397d48ec62873ef430aea063da8a24802e13e6f41107607715c446ccb5f50ac450bcf23d85a51a3aa53858c8525a712321f99f40c5eada8e
|
7
|
+
data.tar.gz: d15c893f5f6b302c16ef1af3eeeeeab20c361ad5ee639849c39b2804678e77c46d99cc77463e1a5203580cbbcb6f651f112667940849af4e8b31c062db16a273
|
@@ -19,20 +19,16 @@ 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
|
-
|
31
|
-
else
|
32
|
-
raise "api_user_url takes an integer, a string, or nil"
|
33
|
-
end
|
22
|
+
def api_user_url(x)
|
23
|
+
if x.blank?
|
24
|
+
"#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/0"
|
25
|
+
elsif x.is_a?(Integer)
|
26
|
+
"#{OCEAN_API_URL}/#{Api.version_for :api_user}/api_users/#{x}"
|
27
|
+
elsif x.is_a?(String)
|
28
|
+
x
|
29
|
+
else
|
30
|
+
raise "api_user_url takes an integer, a string, or nil"
|
34
31
|
end
|
35
|
-
|
36
|
-
end
|
32
|
+
end
|
37
33
|
|
38
34
|
end
|
data/lib/ocean/engine.rb
CHANGED
data/lib/ocean/version.rb
CHANGED