Skip to content

Commit

Permalink
reloader no longer chokes when given an absolute path to load
Browse files Browse the repository at this point in the history
  • Loading branch information
zuk committed Apr 29, 2009
1 parent 3ddbaba commit 7d5ff75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/camping/reloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def mtime

# Figures out the full path of a required file.
def full_path(req)
dir = File.expand_path($LOAD_PATH.detect { |l| File.exists?(File.join(l, req)) })
dir = File.expand_path($LOAD_PATH.detect { |l| File.exists?(File.join(l, req)) } || req)
File.join(dir, req)
end
end
Expand Down

0 comments on commit 7d5ff75

Please sign in to comment.