module Audited::Audit::ClassMethods
def reconstruct_attributes(audits)
- Private: -
def reconstruct_attributes(audits) attributes = {} result = audits.collect do |audit| attributes.merge!(audit.new_attributes).merge!(:version => audit.version) yield attributes if block_given? end block_given? ? result : attributes end