Added restoration of rails layout to aliases