diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/changeset.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 879896fe4..57e2d74a4 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -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 |