From ff76d59c5542f9922d1e3776e52f65bc115285ad Mon Sep 17 00:00:00 2001 From: rohit Date: Mon, 14 Jun 2010 19:20:07 +0530 Subject: [PATCH] Exception message for html_safe! is now more self-explanatory [#4847 state:resolved] --- .../core_ext/string/output_safety.rb | 2 +- 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 b53929c..d0a050c 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -100,7 +100,7 @@ end class String def html_safe! - raise "You can't call html_safe! on a String" + raise "For performance reasons you can't call html_safe! on a String" end def html_safe -- 1.7.0.4