module SweetActions::REST::Destroy

Private Instance Methods

action() click to toggle source
# File lib/sweet_actions/rest/destroy.rb, line 9
def action
  @resource = set_resource
  authorize
  destroy
  respond
end
destroy() click to toggle source
# File lib/sweet_actions/rest/destroy.rb, line 16
def destroy
  resource.destroy
end
respond() click to toggle source
# File lib/sweet_actions/rest/destroy.rb, line 20
def respond
  raise "respond method must be implemented by #{self.class.name} since it includes SweetActions::REST::Read"
end