NoMethodError: undefined method `last_comment' after upgrading to rake 11
<p>When running any <code>rake</code> task I get:</p>

<blockquote>
  <p>NoMethodError: undefined method `last_comment' for</p>
  
  <h1></h1>
</blockquote>

<p>This was after <code>bundle update</code> which pulled in the new version of rake, version <code>11.0.1</code>.</p>

<pre><code>$ grep rake Gemfile.lock
       rake
       rake (&gt;= 0.8.7)
     rake (11.0.1)
       rake
$ bundle update
$ bundle exec rake db:drop # any rake task
</code></pre>

<blockquote>
  <p>NoMethodError: undefined method `last_comment' for #&lt; Rake::Application:0x007ff0cf37be38></p>
</blockquote>

<p><strong>Versions</strong></p>

<ul>
<li>Rails 3.2.11</li>
<li>Rake 11.0.1</li>
</ul>