Skip to content

Commit

Permalink
Add unsubscribe link
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD committed Dec 3, 2024
1 parent 323dd8b commit e9b3116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/mailer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<![endif]-->

<!-- Body copy -->
<%= yield %>
<%= raw yield.gsub("UNSUBSCRIBE_ALL_URL", easy_all_unsubscribe_url(token: @user.communication_preferences&.token)) %>

<!--[if (gte mso 9)|(IE)]>
</td></tr></table>
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@
# ############ #
resource :unsubscribe, only: %i[show update], controller: "unsubscribe" do
patch :all
get :easy_all, action: "all"
end

# #### #
Expand Down

0 comments on commit e9b3116

Please sign in to comment.