Some changes in the way I require the files and the conditions for rails 2 and 3