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

other articles

parent 19ec4b6d
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ class Research::Journal::Article < ApplicationRecord
end
def git_dependencies(website)
[self] + researchers + researchers.map(&:researcher)
[self] + other_articles_in_the_volume + researchers + researchers.map(&:researcher)
end
def to_s
......@@ -74,6 +74,11 @@ class Research::Journal::Article < ApplicationRecord
protected
def other_articles_in_the_volume
return [] if volume.nil?
volume.articles.where.not(id: self)
end
def last_ordered_element
Research::Journal::Article.where(
university_id: university_id,
......
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