diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-03 14:51:59 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-03 14:51:59 -0700 |
commit | c0635de4296f8b6f6cfa53e97282f73c6ae71b59 (patch) | |
tree | 846394b610cb37e046aad2232d91c80f0a253f05 /guides | |
parent | 376b13c0cd0fca230ea204f8a4879707ac5b5aef (diff) | |
parent | 4f9ae6cfc66b8afcf3d059b9fd321678a8b44753 (diff) | |
download | rails-c0635de4296f8b6f6cfa53e97282f73c6ae71b59.tar.gz rails-c0635de4296f8b6f6cfa53e97282f73c6ae71b59.tar.bz2 rails-c0635de4296f8b6f6cfa53e97282f73c6ae71b59.zip |
Merge pull request #11744 from Karunakar/minor_fix_on_flatmap
used flat_map instead of map.flatten in /guides/rails_guides/helpers.rb
Diffstat (limited to '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) |