diff options
| author | cedricnjanga | 2017-09-11 16:29:47 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-09-11 16:29:47 +0200 |
| commit | 42f80e0aaca740b57f69847c36fd4c4463af6169 (patch) | |
| tree | af250081dcdc4631907998e6726d4d555a29bf8e | |
| parent | 8fe9a39516f6fb71545d6329c448680d6f8c75d1 (diff) | |
| download | chouette-core-42f80e0aaca740b57f69847c36fd4c4463af6169.tar.bz2 | |
Change the current_offer_workbench method
| -rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8cb5726c4..853c2f715 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -34,7 +34,7 @@ class ApplicationController < ActionController::Base helper_method :current_organisation def current_offer_workbench - current_organisation.workbenches.where(name: "Gestion de l'offre") + current_organisation.workbenches.find_by_name("Gestion de l'offre") end helper_method :current_offer_workbench |
