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_permission_dsl.rb
    path of file: ./repos/foreman/app/controllers/concerns/foreman/controller
    
    the code of the file until where you have to start completion: module Foreman::Controller::ActionPermissionDsl
  extend ActiveSupport::Concern

  included do |klass|
    klass.class_att
    
    def define_action_permission(actions, permission)
      self.action_permissions ||= {}
      # for single action case
      [actions].flatten.each do |action|
        self.action_permissions[action] = permission
      end
    end