Permalink
Browse files

Change to OptOutsController#unsubscribe action

Now it takes care of "aciton_handlers" parameter


git-svn-id: https://svn.xlsuite.org/internal/weputuplights.com/trunk@17202 bacab573-a924-0410-b505-ece3e248c36b
  • Loading branch information...
1 parent 95433e0 commit 3d55921105c047fda456a748f51b5ad488a60b3b harman committed Sep 15, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 app/controllers/opt_outs_controller.rb
@@ -312,6 +312,13 @@ def unsubscribe
end
end
+ unless params[:action_handlers].blank? then
+ params[:action_handlers].reject(&:blank?).each do |a_id|
+ action_handler = self.current_account.action_handlers.find(a_id)
+ action_handler.destroy_membership_on_domain(@recipient.party, self.current_domain)
+ end
+ end
+
logger.debug {"==> return_to_url: #{@recipient.return_to_url}\n#{request.env.to_yaml}"}
redirect_to @recipient.email.return_to_url
end

0 comments on commit 3d55921

Please sign in to comment.