From a38224d71ba0591395943177faa7bbaeb4851595 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 4 Dec 2012 15:38:03 -0800 Subject: Testing of functionality to retrieve tickets. --- help/app/controllers/tickets_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'help/app/controllers') diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb index 1a73df9..4d6caef 100644 --- a/help/app/controllers/tickets_controller.rb +++ b/help/app/controllers/tickets_controller.rb @@ -82,10 +82,10 @@ class TicketsController < ApplicationController def index #TODO: we will need pagination - @tickets = Ticket.for_user(current_user, params, admin?) + @all_tickets = Ticket.for_user(current_user, params, admin?) #for tests, useful to have as separate variable #below works if @tickets is a CouchRest::Model::Designs::View, but not if it is an Array - @tickets = @tickets.page(params[:page]).per(10) #TEST + @tickets = @all_tickets.page(params[:page]).per(10) #TEST #respond_with(@tickets) end -- cgit v1.2.3