Casting argument passed to send to a symbol on the merge_metadata method.

This commit is contained in:
Ben Atkins 2012-10-11 11:37:24 -04:00
parent 7abf490107
commit 139973e59f
1 changed files with 1 additions and 1 deletions

View File

@ -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