From ccb1e62c8f84e8400ada4a5944e5a3eaeb7eb750 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Tue, 29 Sep 2009 22:53:09 +0200 Subject: [PATCH] Don't erase old publcations, so that the relations don't disappear. --- app/controllers/publications_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/publications_controller.rb b/app/controllers/publications_controller.rb index fd623b9..c7a1194 100644 --- a/app/controllers/publications_controller.rb +++ b/app/controllers/publications_controller.rb @@ -14,8 +14,6 @@ class PublicationsController < ApplicationController def refresh regexp = Regexp.new(Setting.plugin_redmine_publications[:pattern]) - Publication.delete_all() - repo = Repository.find(:first, :conditions => ['project_id = ?', Setting.plugin_redmine_publications[:project]] ) Rails.logger.info('[INFO] Importing changes from ' << repo.url) -- 2.20.1