I’m working on suppressing inactive users within the autocompletion. I realized that probably the search method within users_controller.rb is responsible for this. Within this method, I see something like this:
# build result list tickets = Ticket.search( query: query, condition: params[:condition].to_h, limit: per_page, offset: offset, current_user: current_user, )
I don’t understand why this is done. Why bother querying the tickets when in the end just a list of users should be generated?
Note: I’m not a ruby developer, so maybe my question is stupid… Thanks for helping anyway + best regards, Uli