From 55b27c68635f1ae2116b5c65061c9b58801991f4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 20 Apr 2013 11:02:41 +0200 Subject: [PATCH] Fixed variable space for updated_by_id. --- app/models/observer/history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/observer/history.rb b/app/models/observer/history.rb index 9fbf1b2b6..ba5801775 100644 --- a/app/models/observer/history.rb +++ b/app/models/observer/history.rb @@ -154,7 +154,7 @@ class Observer::History < ActiveRecord::Observer :value_to => value[1], :id_from => value_ids[0], :id_to => value_ids[1], - :created_by_id => self['updated_by_id'] || UserInfo.current_user_id || 1 + :created_by_id => record['updated_by_id'] || UserInfo.current_user_id || 1 ) end