aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
authorXinhui2017-10-18 16:54:46 +0200
committerXinhui2017-10-18 16:54:46 +0200
commit00df5aa984a92adedfcb389dbd36d78a4de7488e (patch)
tree9ca760c71a0bd8eee8faad992f606f60cd4f471c /app/controllers/time_tables_controller.rb
parentbe1a8ec720ba10145630d6aaec1ebde5bcb52117 (diff)
downloadchouette-core-00df5aa984a92adedfcb389dbd36d78a4de7488e.tar.bz2
Remove legacy breadcrumb method in controllers
Refs #4741
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index af74f635f..0c1769ad7 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -19,7 +19,6 @@ class TimeTablesController < ChouetteController
@time_table = @time_table.decorate(context: {
referential: @referential
})
- build_breadcrumb :show
end
end
@@ -30,9 +29,7 @@ class TimeTablesController < ChouetteController
def new
@autocomplete_items = ActsAsTaggableOn::Tag.all
- new! do
- build_breadcrumb :new
- end
+ new!
end
def create
@@ -66,7 +63,6 @@ class TimeTablesController < ChouetteController
def edit
edit! do
- build_breadcrumb :edit
@autocomplete_items = ActsAsTaggableOn::Tag.all
end
end
@@ -89,8 +85,6 @@ class TimeTablesController < ChouetteController
end
@time_tables = decorate_time_tables(@time_tables)
-
- build_breadcrumb :index
}
format.js {
@@ -101,8 +95,6 @@ class TimeTablesController < ChouetteController
def duplicate
@time_table = Chouette::TimeTable.find params[:id]
- # prepare breadcrumb before prepare data for new timetable
- build_breadcrumb :edit
@time_table = @time_table.duplicate
render :new
end