aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2017-09-11 16:29:47 +0200
committercedricnjanga2017-09-11 16:29:47 +0200
commit42f80e0aaca740b57f69847c36fd4c4463af6169 (patch)
treeaf250081dcdc4631907998e6726d4d555a29bf8e
parent8fe9a39516f6fb71545d6329c448680d6f8c75d1 (diff)
downloadchouette-core-42f80e0aaca740b57f69847c36fd4c4463af6169.tar.bz2
Change the current_offer_workbench method
-rw-r--r--app/controllers/application_controller.rb2
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