Method: Paperclip::Storage::S3#exists?
- Defined in:
- lib/paperclip/storage/s3.rb
#exists?(style = default_style) ⇒ Boolean
316 317 318 319 320 321 322 323 324 |
# File 'lib/paperclip/storage/s3.rb', line 316 def exists?(style = default_style) if original_filename s3_object(style).exists? else false end rescue Aws::Errors::ServiceError => e false end |