support muliple Rails version