aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides
diff options
context:
space:
mode:
authorKarunakar (Ruby) <revurikarna@gmail.com>2013-08-04 01:05:52 +0530
committerKarunakar (Ruby) <revurikarna@gmail.com>2013-08-04 01:13:24 +0530
commit4f9ae6cfc66b8afcf3d059b9fd321678a8b44753 (patch)
tree7cb50e53904b638057702acbc6d738da50742eb3 /guides/rails_guides
parent50029ba5a125477b9a0cc17af4c474ddf8a61cae (diff)
downloadrails-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.rb2
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)