summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-08 09:12:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-08 09:12:18 +0000
commit07795cfed510078ff9139d14b60e505b1f2a31a5 (patch)
treee5e009235bb99f36c4dcc88c7a03bc9bb1f9a029 /app/models
parent76a4668f52b32b5e2e4a84d02b7ef1d15bbb9ffc (diff)
downloadredmine-07795cfed510078ff9139d14b60e505b1f2a31a5.tar.gz
redmine-07795cfed510078ff9139d14b60e505b1f2a31a5.zip
Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@14055 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/repository.rb4
-rw-r--r--app/models/repository/git.rb6
2 files changed, 6 insertions, 4 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 21e97bb6e..475445ae5 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -501,9 +501,5 @@ class Repository < ActiveRecord::Base
self.class.connection.delete("DELETE FROM #{ci} WHERE #{ci}.changeset_id IN (SELECT #{cs}.id FROM #{cs} WHERE #{cs}.repository_id = #{id})")
self.class.connection.delete("DELETE FROM #{cp} WHERE #{cp}.changeset_id IN (SELECT #{cs}.id FROM #{cs} WHERE #{cs}.repository_id = #{id})")
self.class.connection.delete("DELETE FROM #{cs} WHERE #{cs}.repository_id = #{id}")
- clear_extra_info_of_changesets
- end
-
- def clear_extra_info_of_changesets
end
end
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb
index 18797315f..9b77dca8b 100644
--- a/app/models/repository/git.rb
+++ b/app/models/repository/git.rb
@@ -254,4 +254,10 @@ class Repository::Git < Repository
self.save
end
private :clear_extra_info_of_changesets
+
+ def clear_changesets
+ super
+ clear_extra_info_of_changesets
+ end
+ private :clear_changesets
end