method

add_static_dependency

rails latest stable - Class: ActionView::DependencyTracker::ERBTracker
add_static_dependency(dependencies, dependency, quote_type)
private

No documentation available.

# 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