Supporting latest rails(2)