Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bugfixing to let the override of exchange_currency loading exchange rate... #7

Merged
merged 1 commit into from

2 participants

@njvitto

....

@hexorx
Owner

Better late than never.

@hexorx hexorx merged commit c055f10 into hexorx:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/currencies/currency.rb
View
2  lib/currencies/currency.rb
@@ -29,7 +29,7 @@ def exchange_rate
end
def load_exchange_rate
- @exchange_currency = self.class.base_currency
+ @exchange_currency = self.class.base_currency unless @exchange_currency
return 1.0 if @code == @exchange_currency
if self.class.import_exchange_rates
http = Net::HTTP.new('download.finance.yahoo.com', 80)
Something went wrong with that request. Please try again.