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:
parent
a60e6ddb83
commit
c4767e13d4
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue