I have several models which all have an email field. This email address
should of course be validated and for that I have this nice regex. But
now I have the email validation method copied throughout my different
models. Which is clearly stupid. I figured I needed a helper (module?)
and use this helper I my models. But I can’t seem to find anyway of
helpers for models, only for the controllers and views. Am I missing
Any help is greatly appreciated.