I'm trying to set up single table inheritance in Rails. I have single table called Finances, with a type set to Income or Expense.
My code is here: https://gist.github.com/caser85/5096447
Ok, I got it to work! Please review my code. Is it ok to set the type using this method?
@finance.type = params[:finance_type]