Skip to content

Commit

Permalink
Fix destroyed MongoMapper document resurrection bug caused by ActiveS…
Browse files Browse the repository at this point in the history
…upport 2.3.4+
  • Loading branch information
laserlemon committed Jul 2, 2012
1 parent 9271d94 commit aca71ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/audited/auditor.rb
Expand Up @@ -157,6 +157,7 @@ def revision_with(attributes)
revision.send :instance_variable_set, '@persisted', !self.destroyed?
revision.send :instance_variable_set, '@readonly', false
revision.send :instance_variable_set, '@destroyed', false
revision.send :instance_variable_set, '@_destroyed', false
revision.send :instance_variable_set, '@marked_for_destruction', false
Audited.audit_class.assign_revision_attributes(revision, attributes)

Expand Down

0 comments on commit aca71ed

Please sign in to comment.