n aria-hidden="true" class="line-numbers-rows"><a href="#C2_L1" id=C2_L1></a></span></code></pre>
<p>You can tell if a record has outstanding changes that have not yet been
saved by checking its <code>isDirty</code> property. You can also see what parts of
the record were changed and what the original value was using the
<code>changedAttributes</code> function.  <code>changedAttributes</code> returns an object,
whose keys are the changed properties and values are an array of values
<code>[oldValue, newValue