Skip to content
Browse files

Create File from #path

Fixes compatibility with Ruby 1.8.7
  • Loading branch information...
1 parent c39a61b commit 1c4885440fd2512347fcd6461633481d1e3726df @chrisdurtschi chrisdurtschi committed Sep 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/carrierwave/sanitized_file.rb
View
2 lib/carrierwave/sanitized_file.rb
@@ -225,7 +225,7 @@ def delete
#
def to_file
return @file if @file.is_a?(File)
- File.open(@file) if exists?
+ File.open(path) if exists?
end
##

0 comments on commit 1c48854

Please sign in to comment.
Something went wrong with that request. Please try again.