Topic: Where to put action affecting multiple models
I have a billing business process which when complete needs to archive records from a number of different models. The actual billing process is done through a model called Billable via a method called geninvs i.e. Billable.geninvs.
I can create archive methods in each of the other models to allow them to archive themselves but I'm undecided as to where I should put the calls to these archive methods. Gut feeling says it should be at the end of the Billable.geninvs method but is that the right way of doing things the 'Rails Way'?
All help gratefully appreciated.