fix bulk req search

This commit is contained in:
Toks
2014-06-18 14:04:31 -04:00
parent f9cc0f0c88
commit b5ab3e1a30

View File

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