Skip to content

Commit

Permalink
acts_as_audited is now Rails 3.1.0 compatible.
Browse files Browse the repository at this point in the history
All specs also passed on 3.0.3.
  • Loading branch information
fivetwentysix committed Sep 2, 2011
1 parent 9a44d4c commit 4052c7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/acts_as_audited/audit.rb
Expand Up @@ -58,6 +58,8 @@ def reconstruct_attributes(audits)
# @private
def assign_revision_attributes(record, attributes)
attributes.each do |attr, val|
record = record.dup if record.frozen?

if record.respond_to?("#{attr}=")
record.attributes.has_key?(attr.to_s) ?
record[attr] = val :
Expand Down

0 comments on commit 4052c7c

Please sign in to comment.