title: Rails ActiveRecord: How do I know if find_or_create_by found or created?
body: <p>If I do </p>
  
  <pre><code>widget = Widget.find_or_create_by_widgetid(:widgetid =&gt; "12345", :param2 =&gt; "folk") 
  </code></pre>
  
  <p>etc. then how do I tell if newobj is a found or newly created Widget? Is there something I can test conditionally on <code>widget</code> that will tell me?</p>