aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-12-23 09:53:21 +0530
committerArun Agrawal <arunagw@gmail.com>2011-12-23 09:53:21 +0530
commitcc450329b2c21928bece7544de4f95a4eebde03c (patch)
tree9b5678b6c5714e12bcff0ed6744f4d2abeb9c7d5 /railties/guides
parent46ec75661d00d788da40a06f6c71092250a7103e (diff)
downloadrails-cc450329b2c21928bece7544de4f95a4eebde03c.tar.gz
rails-cc450329b2c21928bece7544de4f95a4eebde03c.tar.bz2
rails-cc450329b2c21928bece7544de4f95a4eebde03c.zip
[docs] pluck docs reverted for activesupport
https://github.com/rails/rails/commit/367741ef22d1538b8550cf6e4b2276a0946066c0
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile10
1 files changed, 0 insertions, 10 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index cf9185a324..0b5290b72c 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -1977,16 +1977,6 @@ end
NOTE: Defined in +active_support/core_ext/enumerable.rb+.
-h4. +pluck+
-
-The +pluck+ method collects the value of the passed method for each element and returns the result as an array.
-
-<ruby>
-people.pluck(:name) # => [ "David Heinemeier Hansson", "Jamie Heinemeier Hansson" ]
-</ruby>
-
-NOTE: Defined in +active_support/core_ext/enumerable.rb+.
-
h4. +each_with_object+
The +inject+ method offers iteration with an accumulator: