##// END OF EJS Templates
cleanup syntax of Relation#all at QueriesController#index...
Toshi MARUYAMA -
r12327:c57490f48e0e
parent child
Show More
@@ -31,11 +31,13 class QueriesController < ApplicationController
31 31 else
32 32 @limit = per_page_option
33 33 end
34
35 34 @query_count = IssueQuery.visible.count
36 35 @query_pages = Paginator.new @query_count, @limit, params['page']
37 @queries = IssueQuery.visible.all(:limit => @limit, :offset => @offset, :order => "#{Query.table_name}.name")
38
36 @queries = IssueQuery.visible.
37 order("#{Query.table_name}.name").
38 limit(@limit).
39 offset(@offset).
40 all
39 41 respond_to do |format|
40 42 format.api
41 43 end
General Comments 0
You need to be logged in to leave comments. Login now