diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-04-11 23:03:56 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-04-11 23:03:56 +0300 |
commit | b7558a2063a35778e226156ff7b5ab41d83be753 (patch) | |
tree | d14d065b729d933150c6770860f8d5bb7d86206a /app/models/commit.rb | |
parent | 52f6df7255ed40186bd1a0e92abaaf2b926f3817 (diff) | |
download | gitlab-ce-b7558a2063a35778e226156ff7b5ab41d83be753.tar.gz |
Removed encoding monkey patch
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 8e0681f01ae..76064b05670 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -1,5 +1,6 @@ class Commit include ActiveModel::Conversion + include Gitlabhq::Encode extend ActiveModel::Naming attr_accessor :commit @@ -90,7 +91,7 @@ class Commit end def safe_message - message + utf8 message end def created_at @@ -102,11 +103,11 @@ class Commit end def author_name - author.name.force_encoding("UTF-8") + utf8 author.name end def committer_name - committer.name + utf8 committer.name end def committer_email |