Skip to content

Commit

Permalink
Merge pull request #7 from usmanasif/usman/update-open-url
Browse files Browse the repository at this point in the history
Fix deprecation warning on calling Kernel#open on Ruby 2.7
  • Loading branch information
phlegx authored Jul 26, 2021
2 parents 80a6345 + 18955ad commit 712c51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/money/bank/currencylayer_bank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def read_from_url
# Opens an url and reads the content
# @return [String] unparsed JSON content
def open_url
open(source_url).read
::OpenURI.open_uri(source_url).read
rescue OpenURI::HTTPError
''
end
Expand Down

0 comments on commit 712c51f

Please sign in to comment.