diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-02-10 03:12:45 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-02-10 03:12:45 +0000 |
commit | b75a30a21a66fe201e0d8a0ca756bcccef0e1152 (patch) | |
tree | 8e47b7f97003377c9d9083f050d05818d363c0f3 /lib/redmine/hook.rb | |
parent | 5b7a5c39a7da667b1a2718d166a80f1f0ae4d434 (diff) | |
download | redmine-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.rb | 8 |
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 |