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

instance_eval is evil

This commit is contained in:
Akira Matsuda 2014-10-07 20:09:11 +09:00
parent a60e6ddb83
commit c4767e13d4

View file

@ -150,7 +150,7 @@ module ActiveSupport #:nodoc:
else else
if html_safe? if html_safe?
new_safe_buffer = super new_safe_buffer = super
new_safe_buffer.instance_eval { @html_safe = true } new_safe_buffer.instance_variable_set :@html_safe, true
new_safe_buffer new_safe_buffer
else else
to_str[*args] to_str[*args]