aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-12-23 09:50:50 +0100
committerXavier Noria <fxn@hashref.com>2011-12-23 09:50:50 +0100
commit824334c15c21de6768eda64053135bc46f2a67bb (patch)
tree1605f031f0ee2efb22bc9ebf725a42dbb5a3f91c /railties
parent35ded6fd088074acb239d0976e9e19c69512b246 (diff)
downloadrails-824334c15c21de6768eda64053135bc46f2a67bb.tar.gz
rails-824334c15c21de6768eda64053135bc46f2a67bb.tar.bz2
rails-824334c15c21de6768eda64053135bc46f2a67bb.zip
removes Enumerable#pluck from the AS guide
Diffstat (limited to 'railties')
-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 6646e9cd05..fbccff5005 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -2053,16 +2053,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: