For the next major release we should look into changing money_column to support a single currency. Rather than both currency and currency_column, we could have only currency and make it accept something responding to call or to_s.
Example:
class Product
money_column :price, currency: ->(product) { product.currency }
money_column :price_usd, currency: 'USD'
end
I think this is easier to reason about and will help clean up the code
cc: @bdewater
For the next major release we should look into changing money_column to support a single currency. Rather than both
currencyandcurrency_column, we could have onlycurrencyand make it accept something responding tocallorto_s.Example:
I think this is easier to reason about and will help clean up the code
cc: @bdewater