From c5848ae804d74064290dc4d9804b8766805c5b8b Mon Sep 17 00:00:00 2001 From: Xinhui Date: Tue, 7 Feb 2017 15:08:24 +0100 Subject: Fix undefined method current_referential on referential#show --- app/controllers/referentials_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 78d55f94b..5ec4fc2cf 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -68,6 +68,9 @@ class ReferentialsController < BreadcrumbController protected alias_method :referential, :resource + alias_method :current_referential, :referential + helper_method :current_referential + def resource @referential ||= current_organisation.referentials.find_by_id(params[:id]) -- cgit v1.2.3