Skip to content

Commit

Permalink
Server: Since we don't support paths, let's support any path prefix
Browse files Browse the repository at this point in the history
* Makes testing with pusher.js easier since it internally adds version to paths before loading dependencies
  • Loading branch information
mloughran committed Jul 16, 2011
1 parent b57f800 commit 09bfca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jbundle/server.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 09bfca3

Please sign in to comment.