Instead of having a integer _cents field, and a _currency string field, I've created a Currency model, which has:
- iso_code
- usd_rate (the exchange rate to USD)
- name
Examples:
- USD
- iso_code: "USD"
- usd_rate: 1
- name: "American Dollars"
Do you know how can I do to integrate this model with the money-rails gem? (I mean, for having a reference to the currency instead of saving the iso_code, and for using the exchange rate in the currency model)