From 42f80e0aaca740b57f69847c36fd4c4463af6169 Mon Sep 17 00:00:00 2001 From: cedricnjanga Date: Mon, 11 Sep 2017 16:29:47 +0200 Subject: Change the current_offer_workbench method --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3