aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/breadcrumb_controller.rb
blob: 29ecd262cc144c5a879de93c12ac08480896b479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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