Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def unsubscribe
- @user=User.find_by_hashed_email(params[:id])
- @lists=%w[optin_breaking optin_update optin_writers optin_general]
- @mylist=':' + @lists[params[:list].to_i]
- @user.update_attributes(@mylist=>0)
- end
Add Comment
Please, Sign In to add comment