Skip to content

Commit 81ba06a

Browse files
Jay ParekhJay Parekh
authored andcommitted
form redisplay bug fix
1 parent 054a39f commit 81ba06a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/carrierwave/storage/imagekit_store.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ def cache!(new_file)
3333

3434
def retrieve_from_cache!(identifier)
3535
CarrierWave::SanitizedFile.new(::File.expand_path(uploader.cache_path(identifier), uploader.root))
36-
resp=@client.get(identifier)
37-
# binding.pry
38-
IKFile.new(resp)
3936
end
4037

4138
def delete_dir!(path)

lib/imagekitio.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def filename
4242
if self.file!=nil
4343
base64=Base64.encode64(::File.open(self.file.file, "rb").read)
4444
resp=@imagekit.upload_file(open(self.file.file,'rb'),self.file.filename,@options)
45-
::File.delete(self.file.file)
45+
# ::File.delete(self.file.file)
4646
res=resp[:response].to_json
4747
if res!="null"
4848
res

0 commit comments

Comments
 (0)