Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exchange rate only supports https now #7

Open
mrmanishs opened this issue Oct 26, 2017 · 3 comments
Open

exchange rate only supports https now #7

mrmanishs opened this issue Oct 26, 2017 · 3 comments

Comments

@mrmanishs
Copy link

This gem has stopped working since exchange rate only supports https (http://exchange-rates.org) and redirection is not allowed with open-uri. It needs to be updated to call the https version.

@Feuda
Copy link

Feuda commented Oct 26, 2017

with the same issue

@Feuda
Copy link

Feuda commented Oct 26, 2017

As a temporary solution:

  • create a currency_switcher.rb file under the config/initializers/ directory
  • fill the file with below code
    module CurrencySwitcher
    remove_const(:URL) if (defined?(URL))
    URL = "https://exchange-rates.org/converter"
    end
  • restart your server

things will work again

@mrmanishs
Copy link
Author

mrmanishs commented Oct 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants