check for presense of rails 2 instead of 3, for forward compatibility