diff options
| author | Teddy Wing | 2017-08-07 15:06:21 +0200 | 
|---|---|---|
| committer | Robert | 2017-08-11 10:03:46 +0200 | 
| commit | 8cea700c7ebc1e9daf8eda4b35e9d9c28e46249c (patch) | |
| tree | 22ef65c55071768ffc13f46813cd32ff46c800ee /app/controllers | |
| parent | 2458830edbdbe6b098233d59356c7c0b2ef59b9f (diff) | |
| download | chouette-core-8cea700c7ebc1e9daf8eda4b35e9d9c28e46249c.tar.bz2 | |
Routes#duplicate: Add breadcrumb to page
Build a breadcrumb. In order to do so, we need to set the `@line`
instance variable (how would I know that? I wouldn't, damn implicit
dependencies).
Refs #4189
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/routes_controller.rb | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/app/controllers/routes_controller.rb b/app/controllers/routes_controller.rb index 7e10366b3..852477c5c 100644 --- a/app/controllers/routes_controller.rb +++ b/app/controllers/routes_controller.rb @@ -71,6 +71,8 @@ class RoutesController < ChouetteController    def duplicate      @route = Chouette::Route.find(params[:id]) +    @line = @route.line +    build_breadcrumb(:edit)    end    protected | 
