Permalink
Browse files

Explicitly converting values in AuditChange to strings so the oracle …

…adapter won't blow up.
  • Loading branch information...
David Davis
David Davis committed Aug 21, 2009
1 parent ec5e442 commit 38a08039479daa95181527ffe0e4f8fed8754d6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/acts_as_audited.rb
View
@@ -170,7 +170,7 @@ def revision_with(attributes)
def audited_changes(all = false)
changed_attributes.except(*non_audited_columns).inject([]) do |changes,(attr, old_value)|
- changes << AuditChange.new(:field => attr, :old_value => old_value, :new_value => self[attr])
+ changes << AuditChange.new(:field => attr, :old_value => old_value.to_s, :new_value => self[attr].to_s)
changes
end
end

0 comments on commit 38a0803

Please sign in to comment.