I’m trying to add a mixin i wrote (ModelExtensions module in
lib/model_extensions.rb) to ActiveRecord::Base so that i can use the
methods in it in all my classes. (well actually there’s only a single
method in there at the moment)
I’ve added this to environment.rb (right at the bottom):
I’m trying to add a mixin i wrote (ModelExtensions module in
lib/model_extensions.rb) to ActiveRecord::Base so that i can use the
methods in it in all my classes. (well actually there’s only a single
method in there at the moment)
I’ve added this to environment.rb (right at the bottom):
That’s fixed it! Thanks very much - i didn’t appreciate the subtleties
when i blindly copied someone’s example code (a recurring problem for me
with learning rails actually).