From 439ec1c29c821469f25a9b7d8b9da6f9391e5d53 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Tue, 15 Mar 2011 16:11:44 +0100 Subject: [PATCH] try super first, this is a mixin --- lib/report/controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/report/controller.rb b/lib/report/controller.rb index b8885f8080..d6a8e54521 100644 --- a/lib/report/controller.rb +++ b/lib/report/controller.rb @@ -139,6 +139,8 @@ module Report::Controller # Return the id of the current user, for saving queries. Must be overridden by # controllers. def current_user_id + super + rescue NameError raise NotImplementedError, "#{self.class.name} should have overwritten #current_user_id to return the active user's id" end