title: Kaminari.paginate_array ArgumentError (wrong number of arguments (2 for 1)
body: <p>I am using a rails application with the <code>kaminari</code> gem and I have a common array that I am trying to page using the paginate_array method but I am getting a <strong>ArgumentError (wrong number of arguments (2 for 1)</strong> exception. Here is the code:</p>
  
  <pre><code>def index    
  
      page = params[:page] || 1
      items = ClientReports.search(params[:search], sort_column, sort_direction)
      @clients =  Kaminari.paginate_array(items, total_count: items.count).page(page)
  
      respond_with(@clients)
  
    end
  </code></pre>
  
  <p>The line: <code>Kaminari.paginate_array(items, total_count: items.count).page(page)</code> is the one throwing the error. Why is this a problem? From what I can see the <a href="https://github.com/amatsuda/kaminari" rel="nofollow">docs</a> show this should be ok.</p>