Flowdock
method

add_static_dependency

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 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.rb, line 145
        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.