fixed devise ajax auth issue