lib/xray/middleware.rb in xray-rails-0.1.23 vs lib/xray/middleware.rb in xray-rails-0.2.0
- old
+ new
@@ -2,13 +2,13 @@
module Xray
OPEN_PATH = '/_xray/open'
UPDATE_CONFIG_PATH = '/_xray/config'
- # This middleware is responsible for injecting xray.js, xray-backbone.js, and
- # the Xray bar into the app's pages. It also listens for requests to open files
- # with the user's editor.
+ # This middleware is responsible for injecting xray.js and the Xray bar into
+ # the app's pages. It also listens for requests to open files with the user's
+ # editor.
class Middleware
def initialize(app)
@app = app
end
@@ -42,10 +42,9 @@
# Inject the xray bar if xray.js is already on the page
inject_xray_bar!(body)
elsif Rails.application.config.assets.debug
# Otherwise try to inject xray.js if assets are unbundled
if append_js!(body, 'jquery', 'xray')
- append_js!(body, 'backbone', 'xray-backbone')
inject_xray_bar!(body)
end
end
content_length = body.bytesize.to_s