diff options
author | Xavier Noria <fxn@hashref.com> | 2011-12-23 09:42:05 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-12-23 09:42:45 +0100 |
commit | a64ab959874681817c105f4cc6ce8b90b8bde545 (patch) | |
tree | ff669b95e365f41234ce4d9eefefb08b739761f5 /railties/guides | |
parent | ac2f68dd7498ec9de6dd6312cc347593adb5084e (diff) | |
download | rails-a64ab959874681817c105f4cc6ce8b90b8bde545.tar.gz rails-a64ab959874681817c105f4cc6ce8b90b8bde545.tar.bz2 rails-a64ab959874681817c105f4cc6ce8b90b8bde545.zip |
removes Enumerable#pluck from the AS guide
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 10 |
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 1b467e1efd..2ae336fa15 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. +index_by+ The method +index_by+ generates a hash with the elements of an enumerable indexed by some key. |