rails/rails — pull request #9600 by larrylv (2013-03-07 19:44:02+00:00)
Title: @target might be nil when Identity Map is enabled.

* With Identity Map enabled, NameError might be raised and @target is
nil. So we should always ensure `@target ||= find_target`.

* Only force reload target when it is stale.

/cc @rafaelfranca This will fix the broke build caused by my PR #9549.