Correct some missing spots for frozen_string_literal

This commit is contained in:
Sam Saffron 2019-05-06 17:03:33 +10:00 committed by Guo Xiang Tan
parent 30990006a9
commit 982c4496ee
2 changed files with 2 additions and 2 deletions

View File

@ -53,6 +53,6 @@ if Rails.env == "development"
end end
end end
Sprockets.register_bundle_metadata_reducer 'application/javascript', :data, proc { "" }, ::SprocketHack.method(:concat_javascript_sources) Sprockets.register_bundle_metadata_reducer 'application/javascript', :data, proc { +"" }, ::SprocketHack.method(:concat_javascript_sources)
end end

View File

@ -16,7 +16,7 @@ class SourceURL < Tilt::Template
end end
def evaluate(scope, locals, &block) def evaluate(scope, locals, &block)
code = "eval(" code = +"eval("
code << data.inspect code << data.inspect
code << " + \"\\n//# sourceURL=#{scope.logical_path}\"" code << " + \"\\n//# sourceURL=#{scope.logical_path}\""
code << ");\n" code << ");\n"