add old behaviour of #action_has_layout?. we should deprecate this method.