Upgrade Ransack #search to #ransack to prevent deprecation warning

This commit is contained in:
Sebastian Serth
2019-03-11 09:59:38 +01:00
parent 114f77e799
commit a0b544fb26
6 changed files with 15 additions and 15 deletions

View File

@ -60,7 +60,7 @@ class InternalUsersController < ApplicationController
end
def index
@search = InternalUser.search(params[:q])
@search = InternalUser.ransack(params[:q])
@users = @search.result.includes(:consumer).order(:name).paginate(page: params[:page])
authorize!
end