scottohara / loot

An implementation of some of the core MS Money features in Ruby on Rails
MIT License
4 stars 3 forks source link

DRY up create_from_json methods #75

Closed scottohara closed 9 years ago

scottohara commented 9 years ago

Each transaction type's create_from_json (and possibly update_from_json) method should delegate where possible to it's superclass.

So Transaction.create_from_json would set the :memo and :flag; CashTransaction.create_from_json would set the :amount, PayeeCashTransaction.create_from_json would set the :header etc..