title: Active Record - Find and Update (only if object exists)
body: <p>I have an id of a record that may or may not exist in the database. </p>
  
  <p>What i want to do is update an attribute of the record in the database only if it exists, otherwise ignore it.</p>
  
  <p>Now i know i can do something like:</p>
  
  <pre><code>model = Model.find_by_id(id)
  if model
       model.update_attribute(something: something)
  end
  </code></pre>
  
  <p>But i was wondering if there's something nicer that doesn't involve 2 queries?</p>