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: action_trails_controller.rb
    path of file: ./repos/miru-web/app/controllers/internal_api/v1/invoices
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class InternalApi::V1::Invoices::ActionTrails
    
  def show
    authorize :show, policy_class: Invoices::ActionTrailsPolicy

    action_trails_service = Invoices::ActionTrailsService.new(params[:id])
    action_trails_service.process
    action_trails = action_trails_service.trails
    payment_trails = action_trails_service.payment_trails

    render :show, locals: {
      trails: action_trails,
      payment_trails:
    }
  end