Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Server: Since we don't support paths, let's support any path prefix

* Makes testing with pusher.js easier since it internally adds version to paths before loading dependencies
  • Loading branch information...
commit 09bfca3ca8dd81872619eab9da6ad125de6d323f 1 parent b57f800
@mloughran mloughran authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/jbundle/server.rb
View
2  lib/jbundle/server.rb
@@ -11,7 +11,7 @@ def initialize(jfile = JBundle::JFILE)
# Configure JBundle on every request.
# Expensive but allows for reloading changes to JFile
def call(env)
- bundle_name = env['PATH_INFO'].sub('/', '')
+ bundle_name = env['PATH_INFO'].split('/').last
begin
JBundle.config_from_file(@jfile)
compiler = JBundle.build(bundle_name)
Please sign in to comment.
Something went wrong with that request. Please try again.