method

resolve_directories

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: RipperTracker
resolve_directories(wildcard_dependencies) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/dependency_tracker/ripper_tracker.rb, line 46
        def resolve_directories(wildcard_dependencies)
          return [] unless view_paths
          return [] if wildcard_dependencies.empty?

          # Remove trailing "/*"
          prefixes = wildcard_dependencies.map { |query| query[0..-3] }

          view_paths.flat_map(&:all_template_paths).uniq.filter_map { |path|
            path.to_s if prefixes.include?(path.prefix)
          }.sort
        end
Register or log in to add new notes.