method

add_static_dependency

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ERBTracker
add_static_dependency(dependencies, dependency, quote_type) 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 118
        def add_static_dependency(dependencies, dependency, quote_type)
          if quote_type == '"'
            # Ignore if there is interpolation
            return if dependency.include?('#{')
          end

          if dependency
            if dependency.include?("/")
              dependencies << dependency
            else
              dependencies << "#{directory}/#{dependency}"
            end
          end
        end
Register or log in to add new notes.