Sha256: b8d16b92bf7c582501ef39610466288be99559905b3403bad6a567c628724635
Contents?: true
Size: 415 Bytes
Versions: 6
Compression:
Stored size: 415 Bytes
Contents
module ExpectedBehavior module ActsAsArchival module AssociationOperation class Unarchive < Base protected def act_on_archivals(scope) scope.archived.where(:archive_number => head_archive_number).find_each do |related_record| raise ActiveRecord::Rollback unless related_record.unarchive(head_archive_number) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems