I have an app that relies on a series of helpers to generate language specific text strings for all output.
In one of my models I have to save one of these language specific strings to the table. Therefore I've started investigating how I can accesss my helpers in my model - I know this is not best practise, but its the only way I can see to make this work.
I know of the solution with including the helper in the model like this:
class Employee < ActiveRecord::Base include LanguageHelper end
But this is not that good performance wise?
How do I reach my helpers in the model in a more efficient way? Or can I construct my code in a more correct way?
Best regards Rudi