aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorJan Maurits Faber <jmfaber@supersaas.com>2010-11-06 15:13:56 +0100
committerMichael Koziarski <michael@koziarski.com>2010-11-08 09:55:55 +1300
commitf04ec6a227b702342d2fb841f94915499bf6101a (patch)
treef9484d2c29914df3ec1c8bc97a111a9b48611b2b /activesupport/lib/active_support
parent697f4851b8bc4eb539b3e565e8b6349cafed8aaa (diff)
downloadrails-f04ec6a227b702342d2fb841f94915499bf6101a.tar.gz
rails-f04ec6a227b702342d2fb841f94915499bf6101a.tar.bz2
rails-f04ec6a227b702342d2fb841f94915499bf6101a.zip
Added support for Erubis <%== tag
<%== x %> is syntactic sugar for <%= raw(x) %> Signed-off-by: Michael Koziarski <michael@koziarski.com> [#5918 status:committed]
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb1
1 files changed, 1 insertions, 0 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 37c206ea3c..435317e4b1 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -73,6 +73,7 @@ end
module ActiveSupport #:nodoc:
class SafeBuffer < String
alias safe_concat concat
+ alias safe_append= concat
def concat(value)
if value.html_safe?