diff options
| author | Luc Donnet | 2018-04-04 21:13:13 +0200 | 
|---|---|---|
| committer | GitHub | 2018-04-04 21:13:13 +0200 | 
| commit | fe8e3583fd2a135a14fad6cc27cc089d76b7946e (patch) | |
| tree | 22da40370a0aa5dfb89e717e713e0596c83981b6 /app/controllers/routes_controller.rb | |
| parent | a5759a79bae1db95c0c90dc4620bf91620df6cfe (diff) | |
| parent | 91ab685998fb6052efd4d7a74778eb82585eccbb (diff) | |
| download | chouette-core-fe8e3583fd2a135a14fad6cc27cc089d76b7946e.tar.bz2 | |
Merge pull request #390 from af83/6226-create-opposite-route
6226 Add a button to automatically create opposite routes
Diffstat (limited to 'app/controllers/routes_controller.rb')
| -rw-r--r-- | app/controllers/routes_controller.rb | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/app/controllers/routes_controller.rb b/app/controllers/routes_controller.rb index 96a23c938..ac243c8eb 100644 --- a/app/controllers/routes_controller.rb +++ b/app/controllers/routes_controller.rb @@ -63,7 +63,8 @@ class RoutesController < ChouetteController    end    def duplicate -    route = Chouette::Route.find(params[:id]).duplicate +    source = Chouette::Route.find(params[:id]) +    route = source.duplicate params[:opposite]      flash[:notice] = t('routes.duplicate.success')      redirect_to referential_line_path(@referential, route.line)    end | 
