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: description.rb
    path of file: ./repos/gitlabhq/app/services/work_items/callbacks
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module WorkItems
  module Callbacks
    class Description < Base
      def after_initialize
        params[:description] = nil if excluded_in_new_type?

        return unless params
    
      def after_initialize
        params[:description] = nil if excluded_in_new_type?

        return unless params.present? && params.key?(:description)
        return unless has_permission?(:update_work_item)

        work_item.description = params[:description]
        work_item.assign_attributes(last_edited_at: Time.current, last_edited_by: current_user)
      end