noesya/osuny

View on GitHub
app/controllers/admin/administration/qualiopi/criterions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
class Admin::Administration::Qualiopi::CriterionsController < Admin::Administration::ApplicationController
  load_and_authorize_resource class: Administration::Qualiopi::Criterion

  def index
    breadcrumb
  end

  def show
    breadcrumb
  end

  protected

  def breadcrumb
    super
    add_breadcrumb Administration::Qualiopi.model_name.human, admin_administration_qualiopi_criterions_path
    if @criterion
      add_breadcrumb @criterion, [:admin, @criterion]
    end
  end

end