aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-10-07 20:09:11 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-10-25 12:59:37 +0900
commitc4767e13d4ae927e6d605cad3846c9807745b883 (patch)
tree1daec2b2175d6fc2f031456082b71996f2229618 /activesupport/lib/active_support/core_ext
parenta60e6ddb83b036f9b92af5dbcfda265cd0fde3b2 (diff)
downloadrails-c4767e13d4ae927e6d605cad3846c9807745b883.tar.gz
rails-c4767e13d4ae927e6d605cad3846c9807745b883.tar.bz2
rails-c4767e13d4ae927e6d605cad3846c9807745b883.zip
instance_eval is evil
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb
index c761325108..042283e4fc 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -150,7 +150,7 @@ module ActiveSupport #:nodoc:
else
if html_safe?
new_safe_buffer = super
- new_safe_buffer.instance_eval { @html_safe = true }
+ new_safe_buffer.instance_variable_set :@html_safe, true
new_safe_buffer
else
to_str[*args]