noesya/osuny

View on GitHub
app/models/communication/website/page/administration_location.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
76%
class Communication::Website::Page::AdministrationLocation < Communication::Website::Page

  def is_necessary_for_website?
    website.about && website.about&.respond_to?(:administration_locations)
  end

  def editable_width?
    false
  end

  def full_width_by_default?
    true
  end

  def full_width
    true
  end

  def dependencies
    super +
    [website.config_default_languages] +
    website.administration_locations
  end

  def git_path_relative
    'locations/_index.html'
  end
end