Where do I define a method so it's available to all models?

you can create a module mix you application_controller

type error, must mix you model