Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
allow protocol relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
yxmatic committed Apr 21, 2013
1 parent 31452ea commit 266aae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/requirejs_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def requirejs_config_js(name = nil)

if run_config.has_key? 'paths'
# Add paths for assets specified by full URL (on a CDN)
run_config['paths'].each { |k,v| paths[k] = v if v =~ /^https?:/ }
run_config['paths'].each { |k,v| paths[k] = v if v =~ %r{\A(https?:|//)} }
end

# Override user paths, whose mappings are only relevant in dev mode
Expand Down

0 comments on commit 266aae3

Please sign in to comment.