aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb3
1 files changed, 3 insertions, 0 deletions
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])