From dcfc3b3733d30e8998c2e357f92dbeef5ca77003 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 6 Feb 2010 16:15:10 +0100 Subject: AS guide: documents where output safety is defined --- railties/guides/source/active_support_core_extensions.textile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'railties/guides/source/active_support_core_extensions.textile') diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 7a6abf40b6..5393bcc43f 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -701,6 +701,8 @@ def raw(stringish) end +NOTE: Defined in +active_support/core_ext/string/output_safety.rb+. + h4. +squish+ The method +String#squish+ strips leading and trailing whitespace, and substitutes runs of whitespace with a single space each: -- cgit v1.2.3