ruby-on-railsrubymoney-rails

Get list of monetized fields in money-rails


Is there a way to get an array of money fields defined with monetize?

I need them for some metaprogramming


Solution

  • Assuming your model is Monetizable, does this work?

    MyModel.monetized_attributes