]> source.dussan.org Git - redmine.git/commitdiff
Code cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Mar 2015 09:12:18 +0000 (09:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Mar 2015 09:12:18 +0000 (09:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14055 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository.rb
app/models/repository/git.rb

index 21e97bb6e87bcedf0c1f909a0c607cf6740da360..475445ae570384a744c5a37a68818e56d97eb846 100644 (file)
@@ -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
index 18797315f9b53daed6875f1565dc7907b4020569..9b77dca8bb48c774e7c7e18ae6c6dc69e2f4367e 100644 (file)
@@ -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