aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-12-07 23:20:35 -0800
committerSteve Klabnik <steve@steveklabnik.com>2012-12-07 23:20:35 -0800
commited78770b1a13788a5d3fcae484f34654de580bd5 (patch)
treeacbfe5c166ae76a4bb3580e747d44dff9d867db8 /guides/source/active_support_core_extensions.md
parente618adbcabe59eaccfab1f721eb3cf1e915e012e (diff)
downloadrails-ed78770b1a13788a5d3fcae484f34654de580bd5.tar.gz
rails-ed78770b1a13788a5d3fcae484f34654de580bd5.tar.bz2
rails-ed78770b1a13788a5d3fcae484f34654de580bd5.zip
Remove references to Rails versions.
There's no reason for guides to reference old behaviors. They should be current as of the versions of Rails that they ship with, and including older information just clutters thing. I discussed this change with @fxn and he agrees.
Diffstat (limited to 'guides/source/active_support_core_extensions.md')
-rw-r--r--guides/source/active_support_core_extensions.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index 775da2a85c..666e9ee201 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -1120,8 +1120,6 @@ C.subclasses # => [B, D]
The order in which these classes are returned is unspecified.
-WARNING: This method is redefined in some Rails core classes but should be all compatible in Rails 3.1.
-
NOTE: Defined in `active_support/core_ext/class/subclasses.rb`.
#### `descendants`
@@ -1157,7 +1155,7 @@ Inserting data into HTML templates needs extra care. For example, you can't just
#### Safe Strings
-Active Support has the concept of <i>(html) safe</i> strings since Rails 3. A safe string is one that is marked as being insertable into HTML as is. It is trusted, no matter whether it has been escaped or not.
+Active Support has the concept of <i>(html) safe</i> strings. A safe string is one that is marked as being insertable into HTML as is. It is trusted, no matter whether it has been escaped or not.
Strings are considered to be <i>unsafe</i> by default:
@@ -1194,10 +1192,10 @@ Safe arguments are directly appended:
"".html_safe + "<".html_safe # => "<"
```
-These methods should not be used in ordinary views. In Rails 3 unsafe values are automatically escaped:
+These methods should not be used in ordinary views. Unsafe values are automatically escaped:
```erb
-<%= @review.title %> <%# fine in Rails 3, escaped if needed %>
+<%= @review.title %> <%# fine, escaped if needed %>
```
To insert something verbatim use the `raw` helper rather than calling `html_safe`: