3

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

I need them for some metaprogramming

Paul Odeon
  • 4,407
  • 1
  • 37
  • 37

1 Answers1

4

Assuming your model is Monetizable, does this work?

MyModel.monetized_attributes
zwippie
  • 15,050
  • 3
  • 39
  • 54