# File lib/archivist/base.rb, line 157 def copy_to_archive(conditions,delete=true,&block) where = sanitize_sql(conditions) found = self.where(where) found.each do |m| result = m.copy_self_to_archive(&block) m.destroy! if delete && result end end