Method: Helpdesk::SubscribersController#destroy

Defined in:
app/controllers/helpdesk/subscribers_controller.rb

#destroyObject



24
25
26
27
28
# File 'app/controllers/helpdesk/subscribers_controller.rb', line 24

def destroy
  @subscriber = Subscriber.where(hashcode:params[:hashcode],confirmed:true).first
  @subscriber.destroy if @subscriber
  redirect_to root_path,notice: 'Subscriber was successfully deleted.'
end