Helpers for models?

I have some code that I want to share between models and views.

I am making it part of a module in a new file in /lib/ and requiring it
where needed (/lib/ being part of the LOAD_PATH).

Reasonable ?

That’s what I do!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs