From 139973e59f447e226071877df7bc8939815a9b4f Mon Sep 17 00:00:00 2001 From: Ben Atkins Date: Thu, 11 Oct 2012 11:37:24 -0400 Subject: [PATCH] Casting argument passed to send to a symbol on the merge_metadata method. --- lib/paper_trail/has_paper_trail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paper_trail/has_paper_trail.rb b/lib/paper_trail/has_paper_trail.rb index 7dfa2bc4..880fc1f3 100644 --- a/lib/paper_trail/has_paper_trail.rb +++ b/lib/paper_trail/has_paper_trail.rb @@ -190,7 +190,7 @@ module PaperTrail elsif v.is_a?(Symbol) && respond_to?(v) # if it is an attribute that is changing, be sure to grab the current version if has_attribute?(v) && send("#{v}_changed?".to_sym) - send("#{v}_was") + send("#{v}_was".to_sym) else send(v) end