If I have several models which exhibit the same functionality, it seems makes sense to create a mixin, 'include' it in each model and save myself some work and repeated code. Where can I define a module which will be available to all models? I can't seem to find a documented place for them. Alternatively, is there a Rails-standard way of achieving the effect? Ben
on 2006-05-10 13:08
on 2006-05-13 02:24
I've done this before by adding the mixin source file to the model folder. I suspect it would work from lib/ too. Cheers, Dan.