aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorप्रथमेश Sonpatki <csonpatki@gmail.com>2016-05-08 07:23:12 -0500
committerप्रथमेश Sonpatki <csonpatki@gmail.com>2016-05-08 07:23:12 -0500
commit48f9b18b519f341e798445398b28edb2fea0b1a1 (patch)
treef0974325d69c5f05f584e6b78c92784098f085e4
parent0c34773bf57916e64f0fb15577891a6e5c5171c6 (diff)
parent258c95a9a206ffd2778691e1c02875d04d255c8e (diff)
downloadrails-48f9b18b519f341e798445398b28edb2fea0b1a1.tar.gz
rails-48f9b18b519f341e798445398b28edb2fea0b1a1.tar.bz2
rails-48f9b18b519f341e798445398b28edb2fea0b1a1.zip
Merge pull request #24915 from Erol/use-consistent-term-underscored
Use consistent term `underscored`
-rw-r--r--guides/source/active_support_core_extensions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index d7f9201b26..5462e6b2b8 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -2349,7 +2349,7 @@ Contributor.limit(2).order(:rank).to_xml
To do so it sends `to_xml` to every item in turn, and collects the results under a root node. All items must respond to `to_xml`, an exception is raised otherwise.
-By default, the name of the root element is the underscorized and dasherized plural of the name of the class of the first item, provided the rest of elements belong to that type (checked with `is_a?`) and they are not hashes. In the example above that's "contributors".
+By default, the name of the root element is the underscored and dasherized plural of the name of the class of the first item, provided the rest of elements belong to that type (checked with `is_a?`) and they are not hashes. In the example above that's "contributors".
If there's any element that does not belong to the type of the first one the root node becomes "objects":