title: Rails 4 Relation#all deprecation
body: <p>In my app I created a recent posts feature.</p>
  
  <pre><code> @recentposts = Post.all(:order =&gt; 'created_at DESC', :limit =&gt; 5)
  </code></pre>
  
  <p>This variable makes some trouble. When I run tests I have the following error:</p>
  
  <blockquote>
    <p>DEPRECATION WARNING: Relation#all is deprecated. If you want to eager-load a relation, you can call #load (e.g. <code>Post.where(published: true).load</code>). If you want to get an array of records from a relation, you can call #to_a (e.g. <code>Post.where(published: true).to_a</code>). (called from show at /home/mateusz/rails4/Bloggers/app/controllers/users_controller.rb:18)</p>
  </blockquote>
  
  <p>I was seraching solution on Google but I don't find it...</p>