What practice does Rails suggest for refactoring thick models? If
you split out methods from a model class where would you typically put
them? Which rails technique would you use to access them, such as (a)
mix-in’s, (b) call them in their own separate class, e.g.
modelname_tools.method, or perhaps one of the © rails
meta-programming means of loading up extra methods (class methods or
instance methods) into a class.
For example I have a bank “transaction” model for which there are now
a few Class methods such as “self.auto_categorise”, so I would assume
splitting these out into a separate file. So this case which file to
put them into, which directory to house it, and if the methods “added”
back into the model which approach to do this?
thanks in advance