search: refactor to pass in the current user explicitly.
This commit is contained in:
@@ -95,8 +95,8 @@ class UserAction < ApplicationRecord
|
||||
all
|
||||
end
|
||||
|
||||
def self.search(params)
|
||||
q = search_attributes(params, :event_type, :user, :model)
|
||||
def self.search(params, current_user)
|
||||
q = search_attributes(params, [:event_type, :user, :model], current_user: current_user)
|
||||
|
||||
case params[:order]
|
||||
when "event_at_asc"
|
||||
|
||||
Reference in New Issue
Block a user