title: Check to see if record is newly created
body: <p>I can't figure out how to check to see if a record is newly saved. right now I am using </p>
  
  <pre><code> If @item.save
        @a = Item.where(“restaurant_id = ?”, params[:item][:user_id]).where(“created_at &lt; ?”, 2.minutes.ago)
  </code></pre>
  
  <p>The query is working fine but I'm wondering if there is a better way to check to see if the record was just created. I was looking into ActiveModel::Dirty but once the record is saved, :created_at_changed? will return false.</p>