Class: Pasaporte::Controllers::DeleteApproval
- Inherits:
-
Object
- Object
- Pasaporte::Controllers::DeleteApproval
- Defined in:
- lib/pasaporte.rb
Instance Method Summary collapse
- #get_with_nick(appr_id) ⇒ Object (also: #post_with_nick)
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 "The site #{ap} has been removed from your approvals list" redirect R(ApprovalsPage, @nickname) end |