summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-03-20 07:26:34 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2015-03-20 07:26:34 +0000
commit86c6afb5459c20888d6e8d6803b08bc60fdabf86 (patch)
treec164025c58a06f516c25687facefa49f574be13c /app/models
parentc8fb677a1fe1a8a6102867313a722006cea385fe (diff)
downloadredmine-86c6afb5459c20888d6e8d6803b08bc60fdabf86.tar.gz
redmine-86c6afb5459c20888d6e8d6803b08bc60fdabf86.zip
revert r13896 (#14534)
git-svn-id: http://svn.redmine.org/redmine/trunk@14136 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/changeset.rb14
1 files changed, 3 insertions, 11 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index c03296451..499191070 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -69,16 +69,6 @@ class Changeset < ActiveRecord::Base
end
end
- def committer=(arg)
- write_attribute :committer,
- self.class.to_utf8(arg, repository.try(:repo_log_encoding))
- end
-
- def comments=(arg)
- write_attribute :comments,
- self.class.normalize_comments(arg, repository.try(:repo_log_encoding))
- end
-
def committed_on=(date)
self.commit_date = date
super
@@ -102,7 +92,9 @@ class Changeset < ActiveRecord::Base
end
def before_create_cs
- self.comments ||= ''
+ self.committer = self.class.to_utf8(self.committer, repository.repo_log_encoding)
+ self.comments = self.class.normalize_comments(
+ self.comments, repository.repo_log_encoding)
self.user = repository.find_committer_user(self.committer)
end