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