From cb3101a8d85706ef4451d0efc335d7eb81899466 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 13 Dec 2013 17:10:46 +0100 Subject: [PATCH] =?UTF-8?q?bug=20affichage=20articles=20corrig=C3=A9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/admin/articles_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/admin/articles_controller.rb b/app/controllers/admin/articles_controller.rb index 7cdd207..00c85eb 100644 --- a/app/controllers/admin/articles_controller.rb +++ b/app/controllers/admin/articles_controller.rb @@ -104,11 +104,10 @@ class Admin::ArticlesController < ApplicationController @articles = Article.order('published_at DESC') @articles = @articles.after(start) if start @articles = @articles.before(stop) if stop - per_page = (params[:per_page] and params[:per_page] != "") ? params[:per_page] : 5000 + per_page = (params[:per_page] and params[:per_page] != "") ? params[:per_page] : 30 page = (params[:page] and params[:page] != "") ? params[:page] : 1 @articles = @articles.page(page).per(per_page) - #@articles = Event.order('start_at, stop_at').after(start).before(stop) end private