From: Toshi MARUYAMA Date: Tue, 30 Aug 2011 16:01:56 +0000 (+0000) Subject: scm: remove before_save() because of duplicate at url=(arg) and root_url=(arg). X-Git-Tag: 1.3.0~1134 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93b838c3f768d6ec141e433c64156807a979f9e2;p=redmine.git 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 --- 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})")