Skip to content

money_column currency option #152

Description

@elfassy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions