summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-30 16:01:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-30 16:01:56 +0000
commit93b838c3f768d6ec141e433c64156807a979f9e2 (patch)
tree95fdfb38eab5938624315ef1d4b5b94d28787664 /app
parentd0ade0e1940c2200a8dae9b05cd9fb3957e5bdd0 (diff)
downloadredmine-93b838c3f768d6ec141e433c64156807a979f9e2.tar.gz
redmine-93b838c3f768d6ec141e433c64156807a979f9e2.zip
scm: remove before_save() because of duplicate at url=(arg) and root_url=(arg).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6828 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index fc03bddb1..15bfee64c 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -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})")