try super first, this is a mixin

pull/6827/head
Konstantin Haase 14 years ago
parent 8d4efffb15
commit 439ec1c29c
  1. 2
      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 # Return the id of the current user, for saving queries. Must be overridden by
# controllers. # controllers.
def current_user_id 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" raise NotImplementedError, "#{self.class.name} should have overwritten #current_user_id to return the active user's id"
end end

Loading…
Cancel
Save