]> source.dussan.org Git - redmine.git/commitdiff
scm: remove before_save() because of duplicate at url=(arg) and root_url=(arg).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 30 Aug 2011 16:01:56 +0000 (16:01 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 30 Aug 2011 16:01:56 +0000 (16:01 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6828 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository.rb

index fc03bddb1647d2a199cc6304a897071f1b2eb115..15bfee64c00b8ccb2f7fd644f69493bd402f848a 100644 (file)
@@ -312,13 +312,6 @@ class Repository < ActiveRecord::Base
 
   private
 
-  def before_save
-    # Strips url and root_url
-    url.strip!
-    root_url.strip!
-    true
-  end
-
   def clear_changesets
     cs, ch, ci = Changeset.table_name, Change.table_name, "#{table_name_prefix}changesets_issues#{table_name_suffix}"
     connection.delete("DELETE FROM #{ch} WHERE #{ch}.changeset_id IN (SELECT #{cs}.id FROM #{cs} WHERE #{cs}.repository_id = #{id})")