check that fields have been modified before updating updatedAt

Hi, 

I wrote this for myself, thought I could share it.
The point is to not update _updatedAt_ if no changes have been made to the model.

I agree, the code could be made cleaner, nvm.


What do you think ?