Method: Sprockets::Manifest#filter_logical_paths
- Defined in:
- lib/sprockets/legacy.rb
#filter_logical_paths(*args) ⇒ Object Also known as: find_logical_paths
Deprecated: Filter logical paths in environment. Useful for selecting what files you want to compile.
Returns an Enumerator.
312 313 314 315 316 317 |
# File 'lib/sprockets/legacy.rb', line 312 def filter_logical_paths(*args) filters = args.flatten.map { |arg| self.class.compile_match_filter(arg) } environment.cached.logical_paths.select do |a, b| filters.any? { |f| f.call(a, b) } end end |