From ada3d5de41c081739773f5901a2d7a34a4fe97c8 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Wed, 13 Mar 2024 14:26:41 -0400 Subject: [PATCH] starts_with => start_with use ruby method over active support method --- lib/manageiq/api/client/connection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/manageiq/api/client/connection.rb b/lib/manageiq/api/client/connection.rb index daa4837..bf37e21 100644 --- a/lib/manageiq/api/client/connection.rb +++ b/lib/manageiq/api/client/connection.rb @@ -58,12 +58,12 @@ def json_response end def api_path(path) - if path.to_s.starts_with?(url.to_s) + if path.to_s.start_with?(url.to_s) path.to_s elsif path.to_s.blank? URI.join(url, API_PREFIX).to_s else - URI.join(url, path.to_s.starts_with?(API_PREFIX) ? path.to_s : "#{API_PREFIX}/#{path}").to_s + URI.join(url, path.to_s.start_with?(API_PREFIX) ? path.to_s : "#{API_PREFIX}/#{path}").to_s end end