Archivist::Base::InstanceMethods

Public Instance Methods

delete() click to toggle source
# File lib/archivist/base.rb, line 133
def delete
  result = self.copy_self_to_archive unless new_record?
  self.delete! if result
  @destroyed = true
  freeze
end
destroy() click to toggle source
# File lib/archivist/base.rb, line 140
def destroy
  _run_destroy_callbacks do
    self.delete
  end
end
destroy!() click to toggle source
# File lib/archivist/base.rb, line 146
def destroy!
  transaction do
    _run_destroy_callbacks do
      self.delete!
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.