Class: Pasaporte::Controllers::DeleteApproval

Inherits:
Object
  • Object
show all
Defined in:
lib/pasaporte.rb

Instance Method Summary collapse

Instance Method Details

#get_with_nick(appr_id) ⇒ Object Also known as: post_with_nick



436
437
438
439
440
441
# File 'lib/pasaporte.rb', line 436

def get_with_nick(appr_id)
  require_login!
  ap = @profile.approvals.find(appr_id); ap.destroy
  show_message "The site #{ap} has been removed from your approvals list"
  redirect R(ApprovalsPage, @nickname)
end