use framework to detect rails 3