Commit a44955b6 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Add exists? method to ObjectUploader

parent a9a990fe
......@@ -124,6 +124,10 @@ class ObjectStoreUploader < CarrierWave::Uploader::Base
storage.is_a?(CarrierWave::Storage::File)
end
def exists?
file.try(:exists?)
end
private
def set_default_local_store(new_file)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment