Fixed 'attribute_changed?' method not working in after_update, after_save and after_create.
Fixed 'attribute_changed?' method not working correctly with ActiveRecord attribute hashes.