From: Tom Hughes Date: Wed, 19 Nov 2014 00:11:51 +0000 (+0000) Subject: Don't paginate redactions X-Git-Tag: live~4313 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/eb6b1ae73357d7629b804e086a58e2ad4528b35e?hp=a994f5df0b434cde2e53d3489d4dd5a4eb88d298 Don't paginate redactions The index view doesn't render any pagination controls, and there aren't enough redactions for pagination to be necessary yet. Fixes #735 --- diff --git a/app/controllers/redactions_controller.rb b/app/controllers/redactions_controller.rb index f8713608d..d0f902717 100644 --- a/app/controllers/redactions_controller.rb +++ b/app/controllers/redactions_controller.rb @@ -10,7 +10,7 @@ class RedactionsController < ApplicationController before_filter :check_database_writable, :only => [:create, :update, :destroy] def index - @redactions_pages, @redactions = paginate(:redactions, :order => :id, :per_page => 10) + @redactions = Redaction.order(:id) end def new