bug affichage articles corrigé.

This commit is contained in:
Nicolas Bally 2013-12-13 17:10:46 +01:00
parent c03d47d355
commit cb3101a8d8

View File

@ -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