You must require mods somewhere in your rails code. Try adding
require ‘mods’
to your environment.rb, for example. It’s only models and a few other
things that gets loaded automagically.
What’s the appropriate way to extend a ruby class for a rails app?
You must require mods somewhere in your rails code. Try adding
require ‘mods’
to your environment.rb, for example. It’s only models and a few other
things that gets loaded automagically.
Excellent, I added the following to environment.rb and now it works.