mirror of https://github.com/rails/rails
simplify conversion to BINARY
This commit is contained in:
parent
d313892048
commit
a4583da838
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue