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: persist.rb
    path of file: ./repos/motor-admin-rails/lib/motor/notes
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Motor
  module Notes
    module Persist
      TAG_REGEXP = /#\w+?\b/.fre
    
      def call(note, current_user)
        note.author ||= current_user

        tags = parse_tag_names(note)

        Motor::Notes::Tags.assign_tags(note, tags)

        note.save!

        broadcast_note(note)

        note
      end