simplify conversion to BINARY

This commit is contained in:
pavel 2020-06-24 19:50:55 +02:00
parent d313892048
commit a4583da838
1 changed files with 1 additions and 1 deletions

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