Sha256: b62ee8b3d267fbf895069cba9d730c806a38e31002cac6e34b60325a7facd80e
Contents?: true
Size: 631 Bytes
Versions: 7
Compression:
Stored size: 631 Bytes
Contents
module CiviCrm module Actions module Destroy def delete params = { 'entity' => self.class.entity_class_name, 'action' => 'delete', 'id' => id } response = CiviCrm::Client.request(:post, params) refresh_from(response.first.to_hash) end def delete! params = { 'entity' => self.class.entity_class_name, 'action' => 'delete', 'skip_undelete' => 1, 'id' => id } response = CiviCrm::Client.request(:post, params) refresh_from(response.first.to_hash) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems