If you cared about that, you can do `if (this.constructor.rootKey !==
undefined)`, but I think in this case it’s not going to be a problem.


On Mon, Jun 24, 2013 at 7:05 PM, Jakub Arnold <notifications@github.com>wrote:

> In packages/ember-model/lib/model.js:
>
> > @@ -117,7 +118,15 @@ Ember.Model = Ember.Object.extend(Ember.Evented, Ember.DeferredMixin, {
> >          properties[key] = Ember.Model.dataTypes[meta.type].serialize(properties[key]);
> >        }
> >      }
> > -    return properties;
> > +
> > +    if (!Ember.isEmpty(this.constructor.rootKey)) {
>
> Then defining rootKey = "" wouldn't work, but I guess it should never be
> set to "", right?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ebryn/ember-model/pull/85/files#r4856790>
> .
>