Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit c0635de4296f8b6f6cfa53e97282f73c6ae71b59 2 parents 376b13c + 4f9ae6c
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  guides/rails_guides/helpers.rb
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.