Skip to content

Commit

Permalink
oops top namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Jun 18, 2020
1 parent 950207e commit aa8ce17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fastimage.rb
Expand Up @@ -282,8 +282,8 @@ def escaped_location(location)
begin
URI(location)
rescue URI::InvalidURIError
if defined?(ERB::Util)
ERB::Util.url_encode(location)
if defined?(::ERB::Util)
::ERB::Util.url_encode(location)
else
URI.escape(location)
end
Expand Down

0 comments on commit aa8ce17

Please sign in to comment.