Changeset comments are now stripped before being stored in the database (patch by Nicholas Wieland).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@657 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-08-25 14:41:55 +00:00
parent 138566de0b
commit c754e017dc
2 changed files with 19 additions and 0 deletions
+4
View File
@@ -25,6 +25,10 @@ class Changeset < ActiveRecord::Base
validates_uniqueness_of :revision, :scope => :repository_id
validates_uniqueness_of :scmid, :scope => :repository_id, :allow_nil => true
def comments=(comment)
write_attribute(:comments, comment.strip)
end
def committed_on=(date)
self.commit_date = date
super