From 93b838c3f768d6ec141e433c64156807a979f9e2 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 30 Aug 2011 16:01:56 +0000 Subject: [PATCH] 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 --- app/models/repository.rb | 7 ------- 1 file changed, 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})") -- 2.39.5