module Sprockets::Rails::Helper

def legacy_debug_path(path, debug)

Append ?body=1 if debug is on and we're on old Sprockets.
def legacy_debug_path(path, debug)
  if debug && !using_sprockets4?
    "#{path}?body=1"
  else
    path
  end
end