aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-08-25 20:30:06 +0200
committerXavier Noria <fxn@hashref.com>2010-08-25 20:30:06 +0200
commitd2f55e7eee3f82a9a8cc53a2c48294685d75b15e (patch)
tree7f661207e3942ddd843ed96360f269db61045b47
parent1fbb0684d267ca61e9409206c9939d0aeab609c9 (diff)
downloadrails-d2f55e7eee3f82a9a8cc53a2c48294685d75b15e.tar.gz
rails-d2f55e7eee3f82a9a8cc53a2c48294685d75b15e.tar.bz2
rails-d2f55e7eee3f82a9a8cc53a2c48294685d75b15e.zip
AS guide: Array.wrap vs splat is only valid for 1.8
-rw-r--r--railties/guides/source/active_support_core_extensions.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 9b3bb1da15..561bae3be8 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -2226,7 +2226,7 @@ There's also a related idiom that uses the splat operator:
[*object]
</ruby>
-which returns +[nil]+ for +nil+, and calls to <tt>Array(object)</tt> otherwise
+which in Ruby 1.8 returns +[nil]+ for +nil+, and calls to <tt>Array(object)</tt> otherwise. (Please if you know the exact behavior in 1.9 contact fxn.)
Thus, in this case the behavior is different for +nil+, and the differences with <tt>Kernel#Array</tt> explained above apply to the rest of +object+s.