summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb7
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