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

Version Path
acts_as_archival-1.1.1 lib/expected_behavior/association_operation/unarchive.rb
acts_as_archival-1.1.0 lib/expected_behavior/association_operation/unarchive.rb
acts_as_archival-1.0.0 lib/expected_behavior/association_operation/unarchive.rb
acts_as_archival-0.6.1 lib/expected_behavior/association_operation/unarchive.rb
acts_as_archival-0.6.0 lib/expected_behavior/association_operation/unarchive.rb
acts_as_archival-0.5.3 lib/expected_behavior/association_operation/unarchive.rb