Bernie's hint referred to the following code in this file:

. . .

after_save :update_link_score

. . .

protected
def update_link_score
  if self.link.present?
    self.link.update_score
  end
end

. . .