searchable: refactor searchable_includes.
Pass searchable associations directly to search_attributes instead of defining them separately in searchable_includes.
This commit is contained in:
@@ -155,7 +155,6 @@ module Searchable
|
||||
indifferent_params = params.try(:with_indifferent_access) || params.try(:to_unsafe_h)
|
||||
raise ArgumentError, "unable to process params" if indifferent_params.nil?
|
||||
|
||||
attributes += searchable_includes
|
||||
attributes.reduce(all) do |relation, attribute|
|
||||
relation.search_attribute(attribute, indifferent_params, CurrentUser.user)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user