diff options
author | Karunakar (Ruby) <revurikarna@gmail.com> | 2013-08-04 01:05:52 +0530 |
---|---|---|
committer | Karunakar (Ruby) <revurikarna@gmail.com> | 2013-08-04 01:13:24 +0530 |
commit | 4f9ae6cfc66b8afcf3d059b9fd321678a8b44753 (patch) | |
tree | 7cb50e53904b638057702acbc6d738da50742eb3 /guides/rails_guides | |
parent | 50029ba5a125477b9a0cc17af4c474ddf8a61cae (diff) | |
download | rails-4f9ae6cfc66b8afcf3d059b9fd321678a8b44753.tar.gz rails-4f9ae6cfc66b8afcf3d059b9fd321678a8b44753.tar.bz2 rails-4f9ae6cfc66b8afcf3d059b9fd321678a8b44753.zip |
used flat_map instead of map.flatten in /guides/rails_guides/helpers.rb
Diffstat (limited to 'guides/rails_guides')
-rw-r--r-- | guides/rails_guides/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides/helpers.rb b/guides/rails_guides/helpers.rb index a288d0f0f4..760b196abd 100644 --- a/guides/rails_guides/helpers.rb +++ b/guides/rails_guides/helpers.rb @@ -17,7 +17,7 @@ module RailsGuides end def documents_flat - documents_by_section.map {|section| section['documents']}.flatten + documents_by_section.flat_map {|section| section['documents']} end def finished_documents(documents) |