diff lib/redmine/hook.rb @ 37:94944d00e43c

* Update to SVN trunk rev 4411
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:24:41 +0000
parents 513646585e45
children cbb26bc654de
line wrap: on
line diff
--- a/lib/redmine/hook.rb	Fri Sep 24 14:06:04 2010 +0100
+++ b/lib/redmine/hook.rb	Fri Nov 19 13:24:41 2010 +0000
@@ -57,7 +57,7 @@
       # Calls a hook.
       # Returns the listeners response.
       def call_hook(hook, context={})
-        returning [] do |response|
+        [].tap do |response|
           hls = hook_listeners(hook)
           if hls.any?
             hls.each {|listener| response << listener.send(hook, context)}