/bulk_update_requests: add search form.

This commit is contained in:
evazion
2017-05-14 12:47:57 -05:00
parent f510a0d9d2
commit 614bf44086
5 changed files with 67 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ class BulkUpdateRequestsController < ApplicationController
end
def index
@bulk_update_requests = BulkUpdateRequest.search(params[:search]).order("(case status when 'pending' then 0 when 'approved' then 1 else 2 end), id desc").paginate(params[:page], :limit => params[:limit])
@bulk_update_requests = BulkUpdateRequest.search(params[:search]).paginate(params[:page], :limit => params[:limit])
respond_with(@bulk_update_requests)
end