From 524c23c1ea887b070f8bd96f1314a353f4d77961 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 6 Oct 2018 20:15:10 +0200 Subject: [PATCH] fix syntax --- app/jobs/url_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/url_job.rb b/app/jobs/url_job.rb index 24a51a869..7b7fa2e35 100644 --- a/app/jobs/url_job.rb +++ b/app/jobs/url_job.rb @@ -11,7 +11,7 @@ def perform(doi) response = Maremma.head(doi.identifier, limit: 0) if response.headers.present? - doi.update_attributes(:url, response.headers["location"]) + doi.update_attributes(url: response.headers["location"]) logger.debug "Set URL #{response.headers["location"]} for DOI #{doi.doi}" end end