Fix "Unsubscribe" link in notification emails that is triggered by anti-virus
* Created a force=true param that will continue with the previous behaviour of the unsubscribe method * Created a filter for not-logged users so they see a unsubsribe confirmation page * Added the List-Unsubscribe header on emails so the email client can display it on top
显示
- CHANGELOG 1 个添加, 0 个删除CHANGELOG
- app/controllers/sent_notifications_controller.rb 4 个添加, 0 个删除app/controllers/sent_notifications_controller.rb
- app/mailers/notify.rb 6 个添加, 0 个删除app/mailers/notify.rb
- app/views/layouts/notify.html.haml 2 个添加, 2 个删除app/views/layouts/notify.html.haml
- app/views/sent_notifications/unsubscribe.html.haml 4 个添加, 0 个删除app/views/sent_notifications/unsubscribe.html.haml
- spec/controllers/sent_notifications_controller_spec.rb 90 个添加, 13 个删除spec/controllers/sent_notifications_controller_spec.rb
- spec/features/unsubscribe_links_spec.rb 54 个添加, 0 个删除spec/features/unsubscribe_links_spec.rb
- spec/mailers/notify_spec.rb 5 个添加, 5 个删除spec/mailers/notify_spec.rb
- spec/mailers/shared/notify.rb 8 个添加, 0 个删除spec/mailers/shared/notify.rb
spec/features/unsubscribe_links_spec.rb
0 → 100644
想要评论请 注册 或 登录