提交 818858ac 编写于 作者: J José Valim

Do not modify frozen strings in place.

上级 ca1f3a55
......@@ -119,7 +119,7 @@ def initialize(source, identifier, handler, details)
@formats = Array.wrap(format).map(&:to_sym)
@virtual_path = details[:virtual_path]
@virtual_path.sub!(".#{format}", "") if @virtual_path
@virtual_path.sub(".#{format}", "") if @virtual_path
end
def render(view, locals, &block)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册