emberjs/ember.js — pull request #1774 by alanandrade (2013-01-14 19:13:26+00:00)
Title: Close #1729 - controllerFor scope

Given this discussion https://github.com/emberjs/website/issues/232

@mehulkar created issue https://github.com/emberjs/ember.js/issues/1729 and wrote a test.

My code fixes it by checking first the needs array for the controllerName.