1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

simplify conversion to BINARY

This commit is contained in:
pavel 2020-06-24 19:50:55 +02:00
parent d313892048
commit a4583da838

View file

@ -54,7 +54,7 @@ module ActionView
# wrong, we can still find an encoding tag
# (<%# encoding %>) inside the String using a regular
# expression
template_source = source.dup.force_encoding(Encoding::ASCII_8BIT)
template_source = source.b
erb = template_source.gsub(ENCODING_TAG, "")
encoding = $2