From b75a30a21a66fe201e0d8a0ca756bcccef0e1152 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 10 Feb 2009 03:12:45 +0000 Subject: [PATCH] Renamed variables to be more descriptive. #2542 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2430 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/hook.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb index 9241b2f5..bcd23b64 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