Don't paginate redactions
authorTom Hughes <tom@compton.nu>
Wed, 19 Nov 2014 00:11:51 +0000 (00:11 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 19 Nov 2014 00:11:51 +0000 (00:11 +0000)
The index view doesn't render any pagination controls, and there
aren't enough redactions for pagination to be necessary yet.

Fixes #735

app/controllers/redactions_controller.rb

index f8713608d70c148a23b7dd1e37c688caa42a409d..d0f90271744661ed8447d88a7a30cc871eeed649 100644 (file)
@@ -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