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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0adac666fc70e86caba9d17207acf6923ce84d0
4
- data.tar.gz: 2bd274a089083f79a36e8f36cc52a1b09d92d694
3
+ metadata.gz: ebb6aa1d8efe39190e3c8abcce5c376ec19f1b00
4
+ data.tar.gz: 40b75bb4f6c9937beb922b8bb55f282f6ba8c1b9
5
5
  SHA512:
6
- metadata.gz: 322f24f08eb48f7eed67b2efe5f581410417d4f19c8b5b07829bd0ce988515e679d699b7080bce510254b213e9f1a14522d9670782b706f770cd3736d248a112
7
- data.tar.gz: f234f656200fe8a3326fcfd902ec211e2de942610b91852757ff9cf2b93ab12ebff6b192b5cf5da9544846f03e3ce0123c6d7ce8a4735e45d3c049f3d86d2f1a
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
- 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"
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
- end
35
+
36
+ end
33
37
 
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.18.3"
2
+ VERSION = "1.18.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.3
4
+ version: 1.18.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson