提交 a82303e1 编写于 作者: R Rafael Mendonça França

Merge pull request #10220 from vipulnsward/interpolate_on_string

interpolate instead of string concat
......@@ -50,6 +50,6 @@ def truncate(truncate_at, options = {})
length_with_room_for_omission
end
self[0...stop] + options[:omission]
"#{self[0...stop]}#{options[:omission]}"
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册