title: Rails 4.0.0 to 4.1.0 upgrade cause wrong number of arguments error
body: <p>I've upgraded from Rails 4.0.0 to Rails 4.1.0 .</p>
  
  <p>Now I got this error:</p>
  
  <blockquote>
    <p>wrong number of arguments (1 for 0)</p>
  </blockquote>
  
  <pre><code> @courses = Course.all(:conditions =&gt;{ :lecturer_id =&gt; session[:user_id] })
  </code></pre>
  
  <p>How can I fix it?</p>