@@ -31,11 +31,13 class QueriesController < ApplicationController | |||||
31 | else |
|
31 | else | |
32 | @limit = per_page_option |
|
32 | @limit = per_page_option | |
33 | end |
|
33 | end | |
34 |
|
||||
35 | @query_count = IssueQuery.visible.count |
|
34 | @query_count = IssueQuery.visible.count | |
36 | @query_pages = Paginator.new @query_count, @limit, params['page'] |
|
35 | @query_pages = Paginator.new @query_count, @limit, params['page'] | |
37 | @queries = IssueQuery.visible.all(:limit => @limit, :offset => @offset, :order => "#{Query.table_name}.name") |
|
36 | @queries = IssueQuery.visible. | |
38 |
|
37 | order("#{Query.table_name}.name"). | ||
|
38 | limit(@limit). | |||
|
39 | offset(@offset). | |||
|
40 | all | |||
39 | respond_to do |format| |
|
41 | respond_to do |format| | |
40 | format.api |
|
42 | format.api | |
41 | end |
|
43 | end |
General Comments 0
You need to be logged in to leave comments.
Login now