Getting the NoMethodError error when editing the topic due to my plugin

I’m sensing a misunderstanding here. The definition for PostRevisor.track_topic_field is essentially

def self.track_topic_field(field, &block)
  tracked_topic_fields[field] = block # store this block for later
end

Then, later on once the topic has changed:

# key here is the name of the field, and value is the block we stored
# (key, value is called f, cb in the code; we're iterating over a Hash)
tracked_topic_fields.each do |key, value|
  value.call() # call the block we passed earlier. If this is nil, it will blow up
end

So… if you don’t pass a block to track_topic_field, it’s going to go badly when running that update_topic code, because it’s expecting a block (technically a Proc, which is an object that always responds to the call method) to execute as an update callback.