Removed encoding monkey patch
This commit is contained in:
parent
52f6df7255
commit
b7558a2063
6 changed files with 46 additions and 45 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue