diff options
author | Xavier Noria <fxn@hashref.com> | 2010-02-06 16:15:10 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-02-06 16:15:10 +0100 |
commit | dcfc3b3733d30e8998c2e357f92dbeef5ca77003 (patch) | |
tree | 3bc2367cd5c70dac5f1fa5e270c3a7308260a901 | |
parent | 7cb459eb60a27571fb68ad2919f071e13b38614d (diff) | |
download | rails-dcfc3b3733d30e8998c2e357f92dbeef5ca77003.tar.gz rails-dcfc3b3733d30e8998c2e357f92dbeef5ca77003.tar.bz2 rails-dcfc3b3733d30e8998c2e357f92dbeef5ca77003.zip |
AS guide: documents where output safety is defined
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 2 insertions, 0 deletions
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 </ruby> +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: |