require "json" require "active_support/all" require_relative "xray/version" require_relative "xray/aliasing" require_relative "xray/config" require_relative "xray/middleware" if defined?(Rails) && Rails.env.development? require "xray/engine" end module Xray FILE_PLACEHOLDER = '$file' # Used to collect request information during each request cycle for use in # the Xray bar. def self.request_info Thread.current[:request_info] ||= {} end # Returns augmented HTML where the source is simply wrapped in an HTML # comment with filepath info. Xray.js uses these comments to associate # elements with the templates that rendered them. # # This: #