i have a function that i wanna use in different models and i wanna do it
so my best option as i see it is to include a module i made (that is in
lib/ directory) in the model.
my code basicly looks something like this (for testing purpose, i didn’t
implement my function yet)
puts “hello world”
class Test < ActiveRecord::Base
now the weird part is, when i try to do this in rails 2.2 it works but
trying to do this in rails 3.0.0 it doesnt.
why is that?
is there any way of doing it in the newest version of rails?