I have a rails app with several models.

I have a function that I want to access from several models.

What's the best place to put this code and how can I make it accessible from the models that need to get at it?

My understanding is that helpers are just for views. Is this correct?

It seems wrong to create a plug-in and put it in the vendor folder - this is my code and integral to my app. Is this correct?

Thanks.