You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: log_entries_controller.rb
    path of file: ./repos/administrate/spec/example_app/app/controllers/admin
    
    the code of the file until where you have to start completion: module Admin
  class LogEntriesController < Admin::ApplicationController
    def filter_resources(resources, search_term:)
      return resources if search_term.blank?

      customer_ids = Customer.where(
        [
          "name ILIKE ?",
          "%#{search_term}%"
        ]
      ).pluck(:id)
      order_ids = Order.joins(:customer).where(
        [
          "customers.name ILIKE ?",
          "%#{search_term}%"
        ]
      ).pluck(:id)

      customers_filter = resources.whe
    
    def filter_resources(resources, search_term:)
      return resources if search_term.blank?

      customer_ids = Customer.where(
        [
          "name ILIKE ?",
          "%#{search_term}%"
        ]
      ).pluck(:id)
      order_ids = Order.joins(:customer).where(
        [
          "customers.name ILIKE ?",
          "%#{search_term}%"
        ]
      ).pluck(:id)

      customers_filter = resources.where(
        logeable_type: "Customer",
        logeable_id: customer_ids
      )
      orders_filter = resources.where(
        logeable_type: "Order",
        logeable_id: order_ids
      )
      customers_filter.or(orders_filter)
    end