From d656097734928e1f6b3c3bd884e128c4e299f2ec Mon Sep 17 00:00:00 2001 From: colorfulfool Date: Fri, 28 Jul 2017 17:18:10 +0300 Subject: Allow non-English values for collection_radio_buttons/check_boxes --- actionview/lib/action_view/helpers/tags/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib') diff --git a/actionview/lib/action_view/helpers/tags/base.rb b/actionview/lib/action_view/helpers/tags/base.rb index bbb8c4d224..922d4c5390 100644 --- a/actionview/lib/action_view/helpers/tags/base.rb +++ b/actionview/lib/action_view/helpers/tags/base.rb @@ -138,7 +138,7 @@ module ActionView end def sanitized_value(value) - value.to_s.gsub(/\s/, "_").gsub(/[^-\w]/, "").downcase + value.to_s.gsub(/\s/, "_").gsub(/[^-[[:word:]]]/, "").mb_chars.downcase.to_s end def select_content_tag(option_tags, options, html_options) -- cgit v1.2.3