summaryrefslogtreecommitdiffstats
path: root/lib/redmine/hook.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-02-10 03:12:45 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-02-10 03:12:45 +0000
commitb75a30a21a66fe201e0d8a0ca756bcccef0e1152 (patch)
tree8e47b7f97003377c9d9083f050d05818d363c0f3 /lib/redmine/hook.rb
parent5b7a5c39a7da667b1a2718d166a80f1f0ae4d434 (diff)
downloadredmine-b75a30a21a66fe201e0d8a0ca756bcccef0e1152.tar.gz
redmine-b75a30a21a66fe201e0d8a0ca756bcccef0e1152.zip
Renamed variables to be more descriptive. #2542
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2430 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/hook.rb')
-rw-r--r--lib/redmine/hook.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb
index 9241b2f5b..bcd23b64f 100644
--- a/lib/redmine/hook.rb
+++ b/lib/redmine/hook.rb
@@ -140,11 +140,11 @@ module Redmine
module Helper
def call_hook(hook, context={})
if is_a?(ActionController::Base)
- ctx = {:controller => self, :project => @project, :request => request}
- Redmine::Hook.call_hook(hook, ctx.merge(context))
+ default_context = {:controller => self, :project => @project, :request => request}
+ Redmine::Hook.call_hook(hook, default_context.merge(context))
else
- ctx = {:controller => controller, :project => @project, :request => request}
- Redmine::Hook.call_hook(hook, ctx.merge(context)).join(' ')
+ default_context = {:controller => controller, :project => @project, :request => request}
+ Redmine::Hook.call_hook(hook, default_context.merge(context)).join(' ')
end
end
end