Sha256: 40c17ccaee285ead4286276ae2db31ec531f60ab5e37a23dd6357bcc1665b8cb
Contents?: true
Size: 296 Bytes
Versions: 1
Compression:
Stored size: 296 Bytes
Contents
module Nusii module Crud module DestroySelf def destroy options={} raise ArgumentError, "This #{self.class.class_name} has no id" if self.id.blank? requester = Nusii::Request.new requester.delete_call self.class, self.id, options end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nusii-0.1.1 | lib/nusii/crud/destroy_self.rb |