app/controllers/checkouts_controller.rb in enju_circulation-0.0.71 vs app/controllers/checkouts_controller.rb in enju_circulation-0.1.0.pre

- old
+ new

@@ -25,11 +25,11 @@ end if params[:format] == 'csv' per_page = 65534 else - per_page = Checkout.per_page + per_page = Checkout.default_per_page end unless icalendar_user search = Checkout.search if @user @@ -99,10 +99,10 @@ search.build do order_by :created_at, :desc facet :reserved end page = params[:page] || 1 - search.query.paginate(page.to_i, Checkout.per_page) + search.query.paginate(page.to_i, Checkout.default_per_page) @checkouts = search.execute!.results @checkouts_facet = search.facet(:reserved).rows end @days_overdue = params[:days_overdue] ||= 1