Skip to content
Snippets Groups Projects
Commit 740b52a9 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 92fb2810
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ class Research::Publication < ApplicationRecord
include WithGit
include WithSlug
DOI_PREFIX = 'http://dx.doi.org/'
has_and_belongs_to_many :research_people,
class_name: 'University::Person',
foreign_key: 'university_person_id',
......@@ -57,7 +59,7 @@ class Research::Publication < ApplicationRecord
def doi_url
return unless doi.present?
"http://dx.doi.org/#{doi}"
"#{DOI_PREFIX}#{doi}"
end
def to_s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment