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
This commit is contained in:
parent
d0ade0e194
commit
93b838c3f7
|
@ -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})")
|
||||
|
|
Loading…
Reference in New Issue