afimb/chouette2

View on GitHub
app/controllers/breadcrumb_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class BreadcrumbController < InheritedResources::Base

  include BreadcrumbHelper

  def show
    show! do
      build_breadcrumb :show
    end
  end

  def index
    index! do
      build_breadcrumb :index
    end
  end

  def edit
    edit! do
      build_breadcrumb :edit
    end
  end

  def update
    update! do |success, failure|
      build_breadcrumb :edit
    end
  end

  def new
    new! do
      build_breadcrumb :new
    end
  end

  def create
    create! do |success, failure|
      build_breadcrumb :new
    end
  end

end