Permalink
Browse files

Merge pull request #11744 from Karunakar/minor_fix_on_flatmap

used flat_map instead of map.flatten in /guides/rails_guides/helpers.rb
  • Loading branch information...
rafaelfranca committed Aug 3, 2013
2 parents 376b13c + 4f9ae6c commit c0635de4296f8b6f6cfa53e97282f73c6ae71b59
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 c0635de

Please sign in to comment.