Permalink
Browse files

Use File.basename(file) for filename

  • Loading branch information...
sickill committed Aug 27, 2011
1 parent e43e0ce commit 398efec86990d1ffc94a3dc5d70137fd2136016d
Showing with 1 addition and 1 deletion.
  1. +1 −1 gist
View
2 gist
@@ -163,7 +163,7 @@ module Gist
files.push({
:input => File.read(file),
- :filename => file,
+ :filename => File.basename(file),
:extension => (File.extname(file) if file.include?('.'))
})
end

0 comments on commit 398efec

Please sign in to comment.