ebryn/ember-model — pull request #393 by ahacking (2014-07-12 10:25:42+00:00)
Title: Fix belongs_to dirty change to use correct key

Fixes embedded belongsTo relationship to use the correct key when dirtying the parent.

Without this fix, when using the ``key`` option on the relationship, the parents dirty attributes will include an incorrect dirty key. This causes things to blow up in later ``didSaveRecord()`` .. ``_copyDirtyAttributesToData()`` .. ``dataKey()`` .. ``this.constructor.metaForProperty(key)`` as it tries to use the belongsTo option key, and not the actual property key.

Test included.