Skip to content

Commit 7124df7

Browse files
authored
Removed Rails specific methods (#30)
1 parent 93b4095 commit 7124df7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/wor/requests/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ def uri(path)
8585
end
8686

8787
def formatted_base_url
88-
base_url.last != '/' ? "#{base_url}/" : base_url
88+
base_url[-1] != '/' ? "#{base_url}/" : base_url
8989
end
9090

9191
def formatted_path(path)
9292
return '' if path.nil?
93-
return path if path.first != '/'
93+
return path if path[0] != '/'
9494
path.slice!(0)
9595
path
9696
end

0 commit comments

Comments
 (0)