From f59f1035dfb7e3fdd1b53f968d982fd6ef88e230 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 6 Oct 2018 19:33:44 +0200 Subject: [PATCH] trigger indexing when handle record is backfilled --- app/models/concerns/helpable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/helpable.rb b/app/models/concerns/helpable.rb index ee0c48f1c..8e923308d 100644 --- a/app/models/concerns/helpable.rb +++ b/app/models/concerns/helpable.rb @@ -56,7 +56,7 @@ def register_url if [200, 201].include?(response.status) # update minted column after first successful registration in handle system - self.update_columns(minted: Time.zone.now, updated: Time.zone.now) if minted.blank? + self.update_attributes(minted: Time.zone.now, updated: Time.zone.now) if minted.blank? logger.info "[Handle] URL for DOI " + doi + " updated to " + url + "." response