Mercurial > hg > soundsoftware-site
diff lib/redmine/hook.rb @ 41:7f0e922c8982 luisf
merged with new version from trunk
author | luisf |
---|---|
date | Fri, 19 Nov 2010 14:45:28 +0000 |
parents | 94944d00e43c |
children | cbb26bc654de |
line wrap: on
line diff
--- a/lib/redmine/hook.rb Thu Nov 18 17:50:11 2010 +0000 +++ b/lib/redmine/hook.rb Fri Nov 19 14:45:28 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)}