Method: Admin::AuthenticationsController#destroy

Defined in:
app/controllers/stenographer/admin/authentications_controller.rb

#destroyObject



18
19
20
21
22
23
24
# File 'app/controllers/stenographer/admin/authentications_controller.rb', line 18

def destroy
  if @authentication.destroy
    redirect_to admin_authentications_path, notice: 'Authentication Destroyed'
  else
    redirect_to admin_authentication_path(@authentication), alert: @authentication.errors.full_messages.to_sentence
  end
end