method
filter_by
v4.0.2 -
Show latest stable
- Class:
Rails::Paths::Root
filter_by(constraint)protected
No documentation available.
# File railties/lib/rails/paths.rb, line 101
def filter_by(constraint)
all = []
all_paths.each do |path|
if path.send(constraint)
paths = path.existent
paths -= path.children.map { |p| p.send(constraint) ? [] : p.existent }.flatten
all.concat(paths)
end
end
all.uniq!
all
end