+
+ ##
+ # shows revoke all active blocks page
+ def edit; end
+
+ ##
+ # revokes all active blocks
+ def destroy
+ if params[:confirm]
+ @user.blocks.active.each { |block| block.revoke!(current_user) }
+ flash[:notice] = t ".flash"
+ redirect_to user_received_blocks_path(@user)
+ else
+ render :action => :edit
+ end
+ end