emberjs/ember.js — pull request #3271 by teddyzeenny (2013-08-30 17:58:14+00:00)
Title: Disabled model factory injections by default.

Given that it is currently very common to use models as globals, and that `App.Post !== lookupFactory('model:post')` when factory injections are enabled, it made sense to disable model factory injections by default.

With model injections disabled, `App.Post === lookupFactory('model:post')`. This will allow for a smooth transition from globals to factory lookups without breaking any apps.

Added the flag `Ember.ENV.MODEL_FACTORY_INJECTIONS` to enable model injections.

Model factory injections will become the default when accessing global models is no longer a common pattern.