We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6efd3 commit 065c208Copy full SHA for 065c208
activesupport/lib/active_support/multibyte/unicode.rb
@@ -211,9 +211,8 @@ def compose(codepoints)
211
codepoints
212
end
213
214
- # Ruby >= 2.1 has String#scrub, which is faster than the workaround used for < 2.1.
215
# Rubinius' String#scrub, however, doesn't support ASCII-incompatible chars.
216
- if '<3'.respond_to?(:scrub) && !defined?(Rubinius)
+ if !defined?(Rubinius)
217
# Replaces all ISO-8859-1 or CP1252 characters by their UTF-8 equivalent
218
# resulting in a valid UTF-8 string.
219
#
0 commit comments