Displaying 1 result from an estimated 1 matches for "conversion_r".
Did you mean:
conversion
2006 Jan 19
5
123 * 3 => 123123123! But why?
Hi all
I extended the Globalize Plugin the following way:
--------
module Globalize
class Currency
def conversion_rate
code = Locale.active.currency_code
rates = { :USD => 1,
:CHF => 0.75,
:EUR => 1.1,
:GBP => 3.1
}
value = rates[code.to_sym]
raise "No conversion rate found for currency ''#{code}'...