fnp
/
redakcja_redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2c8ba66
)
Don't erase old publcations, so that the relations don't disappear.
master
author
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 29 Sep 2009 20:53:09 +0000
(22:53 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 29 Sep 2009 20:53:09 +0000
(22:53 +0200)
app/controllers/publications_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/publications_controller.rb
b/app/controllers/publications_controller.rb
index
fd623b9
..
c7a1194
100644
(file)
--- 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])
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)
repo = Repository.find(:first, :conditions => ['project_id = ?', Setting.plugin_redmine_publications[:project]] )
Rails.logger.info('[INFO] Importing changes from ' << repo.url)