add limit parameter to everything

This commit is contained in:
Toks
2013-05-15 01:01:19 -04:00
parent 6ca588f2e0
commit 9ccf1e0f8f
28 changed files with 28 additions and 28 deletions

View File

@@ -16,7 +16,7 @@ class DmailsController < ApplicationController
def index
cookies[:dmail_folder] = params[:folder]
@search = Dmail.visible.search(params[:search])
@dmails = @search.order("dmails.created_at desc").paginate(params[:page])
@dmails = @search.order("dmails.created_at desc").paginate(params[:page], :limit => params[:limit])
respond_with(@dmails) do |format|
format.xml do
render :xml => @dmails.to_xml(:root => "dmails")