Skip to content
Snippets Groups Projects
Unverified Commit c7f53a80 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

Merge branch 'connections' of github.com:noesya/osuny into connections

parents 8066cf7d 5d0baea7
No related branches found
No related tags found
No related merge requests found
......@@ -89,10 +89,6 @@ class Communication::Website < ApplicationRecord
[about]
end
def references
[]
end
def website
self
end
......
......@@ -47,6 +47,10 @@ class Communication::Website::Configs::Base < Communication::Website
raise NotImplementedError
end
######
# force dependencies & references to prevent multiple useless calls
######
def dependencies
[]
end
......
......@@ -52,14 +52,6 @@ class Communication::Website::Menu < ApplicationRecord
"admin/communication/websites/menus/static"
end
def dependencies
[]
end
def references
[]
end
def translate_additional_data!(translation)
items.root.ordered.each { |item| translate_menu_item!(item, translation) }
end
......
......@@ -2,6 +2,6 @@ module WithReferences
extend ActiveSupport::Concern
def references
raise NotImplementedError
[]
end
end
\ No newline at end of file
end
......@@ -56,10 +56,6 @@ class Education::Diploma < ApplicationRecord
blocks + programs
end
def references
[]
end
def to_s
"#{name}"
end
......
......@@ -78,10 +78,6 @@ class Education::School < ApplicationRecord
administrators.map(&:administrator)
end
def references
[]
end
#####################
# Aboutable methods #
#####################
......
......@@ -63,10 +63,6 @@ class Research::Journal < ApplicationRecord
researchers.map(&:researcher)
end
def references
[]
end
#####################
# Aboutable methods #
#####################
......
......@@ -26,16 +26,12 @@ class Research::Journal::Paper::Kind < ApplicationRecord
include WithGitFiles
include WithSlug
include WithUniversity
belongs_to :journal, class_name: 'Research::Journal'
has_many :papers
scope :ordered, -> { order(:title) }
def references
[]
end
def to_s
"#{title}"
end
......
......@@ -63,10 +63,6 @@ class Research::Journal::Volume < ApplicationRecord
active_storage_blobs
end
def references
[]
end
def path
"/#{published_at&.year}-#{slug}" if published_at
end
......
......@@ -111,10 +111,6 @@ class University::Organization < ApplicationRecord
blocks
end
def references
[]
end
def git_path(website)
"#{git_path_content_prefix(website)}organizations/#{slug}.html" if for_website?(website)
end
......
......@@ -201,9 +201,6 @@ class University::Person < ApplicationRecord
def dependencies
blocks +
active_storage_blobs
# TODO: Il faut pouvoir récupérer les blobs de la personne à partir d'une facette
# person.active_storage_blobs => [<#ActiveStorage::Blob>]
# person.author.active_storage_blobs => []
end
def references
......
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