title: Paginate is limiting my csv export using Comma gem - how to work around?
body: <p>Here is the relevant code:</p>
  
  <pre><code>def index
      @customer = Customer.new
      if(session[:admin_id])
        @allJobs = Job.where(:merchant_id =&gt; session[:admin_id].to_s).paginate(:per_page =&gt; 15, :page =&gt; params[:page])
      else
        @allJobs = Job.all(:order =&gt; :_id.desc).paginate(:per_page =&gt; 15, :page =&gt; params[:page])
      end
      respond_to do |format|      
        #@allJobs = Job.where(:merchant_id =&gt; session[:admin_id].to_s)
        format.html
        #format.csv {send_data to_csv(@all_customers)}
        format.csv { render :csv =&gt; @allJobs }
  </code></pre>
  
  <p>When I click export - I get a csv of @allJobs... for just the 15 items displayed.</p>
  
  <p>As you can see, in the format block I tried to redefine @allJobs to just everything with the merchant_id, but that throws an error:</p>
  
  <pre><code>No comma format for class Plucky::Query defined for style {}
  </code></pre>
  
  <p>I tried changing the var name to something else - same error.  I just want to export all the jobs that match the merchant_id statement.</p>