aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-11-09 13:15:09 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2012-11-09 13:16:50 -0200
commit054578a45bbc4995e51bccf852657f35d8d9b0b2 (patch)
tree3cb9e77c044fc5b5be0e705bedee7e0c1ca4f320 /railties
parentc7ef6b62c0fc6e5cb1cc63c9977ee1a9b45a17f2 (diff)
downloadrails-054578a45bbc4995e51bccf852657f35d8d9b0b2.tar.gz
rails-054578a45bbc4995e51bccf852657f35d8d9b0b2.tar.bz2
rails-054578a45bbc4995e51bccf852657f35d8d9b0b2.zip
Revert "Respect children paths filter settings"
This reverts commit 53778ec2d716f860646fd43957fd53c8db4da2fe. Closes #8146
Diffstat (limited to 'railties')
-rw-r--r--railties/CHANGELOG.md2
-rw-r--r--railties/lib/rails/paths.rb17
2 files changed, 6 insertions, 13 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index b3b1633089..27f4fd6de7 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,7 +1,5 @@
## Rails 3.2.9 (unreleased)
-* Don't eager-load app/assets and app/views *Elia Schito*
-
* Update supported ruby versions error message in ruby_version_check.rb *Lihan Li*
## Rails 3.2.8 (Aug 9, 2012) ##
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb
index 17eba4c69c..4ac3d88dc2 100644
--- a/railties/lib/rails/paths.rb
+++ b/railties/lib/rails/paths.rb
@@ -87,15 +87,14 @@ module Rails
protected
def filter_by(constraint)
- yes = []
- no = []
-
+ all = []
all_paths.each do |path|
- paths = path.existent + path.existent_base_paths
- path.send(constraint) ? yes.concat(paths) : no.concat(paths)
+ if path.send(constraint)
+ paths = path.existent
+ paths -= path.children.map { |p| p.send(constraint) ? [] : p.existent }.flatten
+ all.concat(paths)
+ end
end
-
- all = yes - no
all.uniq!
all
end
@@ -195,10 +194,6 @@ module Rails
expanded.select { |d| File.directory?(d) }
end
- def existent_base_paths
- map { |p| File.expand_path(p, @root.path) }.select{ |f| File.exist? f }
- end
-
alias to_a expanded
private