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

module ResolvableDiscussion
  extend ActiveSupport::Concern
  inclu
    
  def update
    # Do not select `Note.resolvable`, so that system notes remain in the collection
    notes_relation = Note.where(id: notes.map(&:id))

    yield(notes_relation)

    # Set the notes array to the updated notes
    @notes = notes_relation.fresh.to_a # rubocop:disable Gitlab/ModuleWithInstanceVariables

    noteable.broadcast_notes_changed

    clear_memoized_values
  end