aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorTeddy Wing2017-07-06 16:45:43 +0200
committerTeddy Wing2017-07-07 12:58:11 +0200
commit2fc961ec6661442971c783587efdeddc4344b55c (patch)
treea344fb85e48cd6ded8756ee5b898580689cc68ea /app/controllers
parentd4463529108442b6fc063901e96fc093435b7211 (diff)
downloadchouette-core-2fc961ec6661442971c783587efdeddc4344b55c.tar.bz2
CalendarsController: Fix breadcrumb on #index & #show
Apparently I messed up the breadcrumb in these views because I was overriding the `#index` and `#show` methods defined in `BreadcrumbController`, which make these calls to `#build_breadcrumb`. Add them in to restore the breadcrumb links to these pages. Refs #3479
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/calendars_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index 66eb3f963..1c342c718 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -8,12 +8,16 @@ class CalendarsController < BreadcrumbController
def index
index! do
@calendars = ModelDecorator.decorate(@calendars, with: CalendarDecorator)
+
+ build_breadcrumb :index
end
end
def show
show! do
@calendar = @calendar.decorate
+
+ build_breadcrumb :show
end
end