aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/tags/base.rb
diff options
context:
space:
mode:
authorcolorfulfool <t0ny.hamster@gmail.com>2017-07-28 17:18:10 +0300
committercolorfulfool <t0ny.hamster@gmail.com>2017-08-02 16:28:35 +0300
commitd656097734928e1f6b3c3bd884e128c4e299f2ec (patch)
tree0ceb0c2f8f5f5a031c07d0fb9f8841e82e592fad /actionview/lib/action_view/helpers/tags/base.rb
parentac6cd6800a1eb7dc86ff3897cca7434af636ea48 (diff)
downloadrails-d656097734928e1f6b3c3bd884e128c4e299f2ec.tar.gz
rails-d656097734928e1f6b3c3bd884e128c4e299f2ec.tar.bz2
rails-d656097734928e1f6b3c3bd884e128c4e299f2ec.zip
Allow non-English values for collection_radio_buttons/check_boxes
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/base.rb')
-rw-r--r--actionview/lib/action_view/helpers/tags/base.rb2
1 files changed, 1 insertions, 1 deletions
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)