I want a function to be accessible from both action and model. What is the best practice for it keeping in mind MVC and DRY? The function is to be used by more than one models so it also does not make sense to make it a public function of a model.
I want a function to be accessible from both action and model. What is
Share
Getting it clean into an own object is better than a helper with mixed functionality as it makes (unit) testing easier and allows inheritance to fit each models invidual needs.