cleanup syntax of Relation#all at QueriesController#index
git-svn-id: http://svn.redmine.org/redmine/trunk@12602 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
72715ec78e
commit
c57490f48e
@ -31,11 +31,13 @@ class QueriesController < ApplicationController
|
||||
else
|
||||
@limit = per_page_option
|
||||
end
|
||||
|
||||
@query_count = IssueQuery.visible.count
|
||||
@query_pages = Paginator.new @query_count, @limit, params['page']
|
||||
@queries = IssueQuery.visible.all(:limit => @limit, :offset => @offset, :order => "#{Query.table_name}.name")
|
||||
|
||||
@queries = IssueQuery.visible.
|
||||
order("#{Query.table_name}.name").
|
||||
limit(@limit).
|
||||
offset(@offset).
|
||||
all
|
||||
respond_to do |format|
|
||||
format.api
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user