summaryrefslogtreecommitdiff
path: root/help/app
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2012-12-04 15:38:03 -0800
committerjessib <jessib@leap.se>2012-12-04 15:38:03 -0800
commita38224d71ba0591395943177faa7bbaeb4851595 (patch)
tree48111aa157fecc05f31ce1ae4660f122a905bf17 /help/app
parenta335b840359b17dd2f2e2e1a8a19adcd36b1283c (diff)
Testing of functionality to retrieve tickets.
Diffstat (limited to 'help/app')
-rw-r--r--help/app/controllers/tickets_controller.rb4
1 files changed, 2 insertions, 2 deletions
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