From 0f9fc2b1e6d8ba1817f3df59eafe3d4e0d1e584e Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 27 Apr 2018 04:12:12 +0900 Subject: Address `Style/StringLiterals` offence Caused at 9276ea89d2b0be9fdd1ad6590857f8d45a38c267. --- actionview/lib/action_view/helpers/tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib') diff --git a/actionview/lib/action_view/helpers/tag_helper.rb b/actionview/lib/action_view/helpers/tag_helper.rb index 146bd5ee24..d12989ea64 100644 --- a/actionview/lib/action_view/helpers/tag_helper.rb +++ b/actionview/lib/action_view/helpers/tag_helper.rb @@ -90,7 +90,7 @@ module ActionView else value = escape ? ERB::Util.unwrapped_html_escape(value) : value.to_s.dup end - value.gsub!('"'.freeze, '"'.freeze) + value.gsub!('"'.freeze, """.freeze) %(#{key}="#{value}") end -- cgit v1.2.3