lib/dassets/file_store.rb in dassets-0.15.2 vs lib/dassets/file_store.rb in dassets-0.15.3
- old
+ new
@@ -14,10 +14,10 @@
def save(url_path, &block)
@save_mutex.synchronize do
store_path(url_path).tap do |path|
FileUtils.mkdir_p(File.dirname(path))
- File.open(path, "w"){ |f| f.write(block.call) }
+ File.open(path, "wb"){ |f| f.write(block.call) }
end
end
end
def store_path(url_path)