Flowdock
method

resolve_directories

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ERBTracker
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/erb_tracker.rb, line 133
        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.