Module: ExpectedBehavior::ActsAsArchival

Defined in:
lib/expected_behavior/acts_as_archival.rb,
lib/expected_behavior/association_operation/base.rb,
lib/expected_behavior/association_operation/archive.rb,
lib/expected_behavior/association_operation/unarchive.rb

Defined Under Namespace

Modules: ActMethods, AssociationOperation, InstanceMethods

Constant Summary collapse

MissingArchivalColumnError =
Class.new(ActiveRecord::ActiveRecordError)
CouldNotArchiveError =
Class.new(ActiveRecord::ActiveRecordError)
CouldNotUnarchiveError =
Class.new(ActiveRecord::ActiveRecordError)

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



16
17
18
# File 'lib/expected_behavior/acts_as_archival.rb', line 16

def self.included(base)
  base.extend ActMethods
end