diff options
author | Erik Michaels-Ober <sferik@gmail.com> | 2014-03-03 19:23:29 -0800 |
---|---|---|
committer | Erik Michaels-Ober <sferik@gmail.com> | 2014-03-04 09:13:44 -0800 |
commit | cff340f1eda96be952437abeed80591a85ef0194 (patch) | |
tree | 039fcb81d0437cdb77f7c197fea068a36a19f965 /railties/lib/rails/paths.rb | |
parent | 3413b88a3d6b2b022dfb57e42565446b1e024314 (diff) | |
download | rails-cff340f1eda96be952437abeed80591a85ef0194.tar.gz rails-cff340f1eda96be952437abeed80591a85ef0194.tar.bz2 rails-cff340f1eda96be952437abeed80591a85ef0194.zip |
Replace map.flatten with flat_map in railties
Diffstat (limited to 'railties/lib/rails/paths.rb')
-rw-r--r-- | railties/lib/rails/paths.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index 117bb37487..3eb66c07af 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -101,7 +101,7 @@ module Rails def filter_by(&block) all_paths.find_all(&block).flat_map { |path| paths = path.existent - paths - path.children.map { |p| yield(p) ? [] : p.existent }.flatten + paths - path.children.flat_map { |p| yield(p) ? [] : p.existent } }.uniq end end |