def resolved
    @an = An.active.find(params[:id])
    Extender::Activities.an_resolved(@an,current_user) # oznaczam jako rozwiazane
    respond_to do |format|
      if @an.thr.user == current_user && @an.resolve # rozwiazuje