Permalink
Browse files

Backing out main part of fix for JRUBY-2722: It breaks Rails

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@7201 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 820d598 commit 5a42e896ddc2968cdd197aa4986bd94a258dbea1 @enebo enebo committed Jul 17, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/jruby/runtime/load/LoadService.java
@@ -494,7 +494,7 @@ private LoadServiceResource findFile(String name, boolean checkCWD) {
RubyFile.expandUserPath(runtime.getCurrentContext(), name));
if (current.isFile()) {
try {
- return new LoadServiceResource(current.toURI().toURL(), name);
+ return new LoadServiceResource(current.toURI().toURL(), current.getPath());
} catch (MalformedURLException e) {
throw runtime.newIOErrorFromException(e);
}

0 comments on commit 5a42e89

Please sign in to comment.