From ee45823072cb21cfca623ff45792ef381774e32d Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Fri, 2 Dec 2011 23:53:21 +0530 Subject: revises Enumerable#pluck in AS guide --- railties/guides/source/active_support_core_extensions.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 76d757f6a7..6646e9cd05 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -2055,7 +2055,7 @@ NOTE: Defined in +active_support/core_ext/enumerable.rb+. h4. +pluck+ -Plucks the value of the passed method for each element and returns the result as an array +The +pluck+ method collects the value of the passed method for each element and returns the result as an array. people.pluck(:name) # => [ "David Heinemeier Hansson", "Jamie Heinemeier Hansson" ] -- cgit v1.2.3