# File lib/audited/audit.rb, line 142 def self.reconstruct_attributes(audits) attributes = {} result = audits.collect do |audit| attributes.merge!(audit.new_attributes)[:audit_version] = audit.version yield attributes if block_given? end block_given? ? result : attributes end