If I have a method that is useful in both models and in views, where
be the appropriate place to put it?
The method in question just takes two dates as strings, tries to parse
and returns all dates in the range between them. It also takes care of
issues when the dates are badly formatted etc etc…
This method is being used in several models (so a simple class method in
one model doesn’t seem appropriate) and also in some view helpers.
So, where does this method belong in rails?