app/models/university/person/localization/researcher.rb
class University::Person::Localization::Researcher < University::Person::Localization
def self.polymorphic_name
'University::Person::Localization::Researcher'
end
def git_path(website)
"#{git_path_content_prefix(website)}researchers/#{slug}/_index.html" if for_website?(website)
end
def template_static
"admin/research/researchers/static"
end
def dependencies
[
person_l10n,
person
] +
person.research_publications
end
def references
research_journal_papers
end
def static_localization_key
# so we don't mess with the University::Person::Localization static_localization_key
"#{about.class.polymorphic_name.parameterize}-researcher-#{self.about_id}"
end
end