diff options
| author | Teddy Wing | 2017-07-06 16:45:43 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-07-07 12:58:11 +0200 | 
| commit | 2fc961ec6661442971c783587efdeddc4344b55c (patch) | |
| tree | a344fb85e48cd6ded8756ee5b898580689cc68ea | |
| parent | d4463529108442b6fc063901e96fc093435b7211 (diff) | |
| download | chouette-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
| -rw-r--r-- | app/controllers/calendars_controller.rb | 4 | 
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 | 
