FileSystemBackend#current_data doesn't return an image
Reported by nbarthelemy | November 20th, 2008 @ 01:19 PM
While running my project on windows I noticed an anomaly in the FileSystemBackend#current_data method. The issue is identified in the following post:
http://rubyforge.org/pipermail/r...
The use of File.read returns inconsistent results on windows. The solution is to pass a block to File.open. The following code will resolve the issue.
#line 94 file_system_backend.rb
def current_data
File.file?(full_filename) ? File.open(full_filename, "rb"){|f| f.read } : nil
end
No comments found
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
- Nobody is watching this ticket.