search for: inventorytransact

Displaying 1 result from an estimated 1 matches for "inventorytransact".

2009 Dec 14
5
Too many methods in the model? Extra lightweight logic layer?
...convention of fat models to handle business logic, is there a point where you might be justified in using a separate plain ruby object(s) to orchestrate certain business logic interactions, essentially a middle layer between your controllers and models for high level functions? If you look at the InventoryTransaction model below you will see the sort of methods I mean. In this case they are similar to factory methods I suppose. However, I could end up with around 30+ different method handling different kinds of inventory adjustments. Most of these methods are non-trivial as the lookup and create other model...