Permalink
Browse files

used flat_map instead of map.flatten in /guides/rails_guides/helpers.rb

  • Loading branch information...
1 parent 50029ba commit 4f9ae6cfc66b8afcf3d059b9fd321678a8b44753 @Karunakar Karunakar committed Aug 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/rails_guides/helpers.rb
@@ -17,7 +17,7 @@ def documents_by_section
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)

0 comments on commit 4f9ae6c

Please sign in to comment.