From ec6755d6df20da649ede5db3d10eff1d125aafb6 Mon Sep 17 00:00:00 2001 From: fosterfarrell9 <28628554+fosterfarrell9@users.noreply.github.com> Date: Sat, 27 Apr 2024 18:15:47 +0200 Subject: [PATCH] Add missing current_ability method --- app/controllers/interactions_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/interactions_controller.rb b/app/controllers/interactions_controller.rb index 20cb9c5fd..b3d5abeb8 100644 --- a/app/controllers/interactions_controller.rb +++ b/app/controllers/interactions_controller.rb @@ -3,6 +3,10 @@ class InteractionsController < ApplicationController authorize_resource layout "administration" + def current_ability + @current_ability ||= InteractionAbility.new(current_user) + end + def index end