title: Rails : undefined method `exists?' for AWS::S3::S3Object:Class
body: <p>I'm using the aws-sdk gem and trying to verify if a file uploaded to a bucket exists.
  I'm also using Paperclip 2.7.</p>
  
  <p>This method seems to not work:</p>
  
  <pre><code>if record.image and AWS::S3::S3Object.exists? record.image, "mybucket-dev"
  </code></pre>
  
  <p>I think AWS::S3::S3Object.exists? was a method from old gem aws-s3 ?</p>
  
  <p>What method can I use to test if the file is present in the bucket ?</p>
  
  <p>In fact, the real path I want to check is something like that:</p>
  
  <pre><code>record.image.to_file(:tiny).path 
  </code></pre>
  
  <p>(the tiny version of my image)</p>
  
  <p>Thanks.</p>