Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add some comments to understand the issue

  • Loading branch information...
commit 1cffd2bec802548e17a4ecc99cf6f40fdfb5622b 1 parent 66fb51d
@rafaelfranca authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  railties/lib/rails/paths.rb
View
2  railties/lib/rails/paths.rb
@@ -102,7 +102,9 @@ def filter_by(constraint)
all = []
all_paths.each do |path|
if path.send(constraint)
+ # ['something/app/assets', ...]
paths = path.existent
+ # ['something/app/assets/javascript', 'something/app/assets/images', 'something/app/assets/stylesheet']
paths -= path.children.map { |p| p.send(constraint) ? [] : p.existent }.flatten
all.concat(paths)
end
Please sign in to comment.
Something went wrong with that request. Please try again.