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: foundation_controller.rb
    path of file: ./repos/super/app/controllers/super
    
    the code of the file until where you have to start completion: # typed: true
# frozen_string_literal: true

module Super
  # These methods could be useful for any Super control
    
    def with_current_action(action)
      original = @current_action
      @current_action = ActionInquirer.new(
        ActionInquirer.default_for_resources,
        action
      )
      yield
    ensure
      @current_action = original
    end