noesya/osuny

View on GitHub
app/models/communication/website/permalink/administrator.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
55%
class Communication::Website::Permalink::Administrator < Communication::Website::Permalink
  def self.required_in_config?(website)
    website.has_administrators?
  end

  def self.static_config_key
    :administrators
  end

  # /equipe/:slug/roles/
  # FIXME : Remplacer le roles comme dans Permalink::Author ? (Pas sûr)
  def self.pattern_in_website(website, language)
    special_page_path(website, language) + '/:slug/roles/'
  end

  def self.special_page_type
    Communication::Website::Page::Person
  end
end