Method: LesliSecurity::DescriptorService#destroy

Defined in:
app/services/lesli_security/descriptor_service.rb

#destroyObject

Returns:

  • (Object)


141
142
143
144
145
146
147
148
149
150
# File 'app/services/lesli_security/descriptor_service.rb', line 141

def destroy

    # TODO: keep track of the activities

    unless self.resource.destroy
        self.error(self.resource.errors.full_messages.to_sentence)
    end

    self
end