Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
This commit is contained in:
parent
1413c23c50
commit
7754189187
257 changed files with 1449 additions and 1449 deletions
|
@ -19,7 +19,7 @@ module Gitlab
|
|||
# if message is not utf-8 encoding, convert it
|
||||
if detect[:encoding]
|
||||
message.force_encoding(detect[:encoding])
|
||||
message.encode!("utf-8", detect[:encoding], :undef => :replace, :replace => "", :invalid => :replace)
|
||||
message.encode!("utf-8", detect[:encoding], undef: :replace, replace: "", invalid: :replace)
|
||||
end
|
||||
|
||||
# ensure message encoding is utf8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue