Method: Anoubis::Data::Callbacks#destroy_data

Defined in:
app/controllers/anoubis/data/callbacks.rb

#destroy_dataObject

Fires when data is destroyed



58
59
60
61
62
63
# File 'app/controllers/anoubis/data/callbacks.rb', line 58

def destroy_data
  if !self.etc.data.data.destroy
    self.output.errors.concat self.etc.data.data.errors.full_messages
    self.output.result = -4
  end
end