noesya/osuny

View on GitHub
app/controllers/admin/communication/websites/dependencies_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
44%
class Admin::Communication::Websites::DependenciesController < Admin::Communication::Websites::ApplicationController
  def index
    @dependencies = @website.recursive_dependencies(follow_direct: true)
                            .sort_by { |dependency| dependency.class.to_s }
    breadcrumb
  end

  protected

  def breadcrumb
    super
    add_breadcrumb 'Dépendances', admin_communication_website_dependencies_path
  end
end