Skip to content

Commit

Permalink
Bugfixing to let the override of exchange_currency loading exchange r…
Browse files Browse the repository at this point in the history
…ate.
  • Loading branch information
njvitto committed May 10, 2012
1 parent d939627 commit e43709b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/currencies/currency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e43709b

Please sign in to comment.