Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 6, 2018
1 parent 8c53eb5 commit 524c23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/url_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 524c23c

Please sign in to comment.