Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fix: remove User#to_hash call in magic link template (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
darccio committed Apr 22, 2023
1 parent 7761b82 commit e5029c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/sessions_mailer/user_magic_link_email.text.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= t('application_mailer.greeting') %>,

<%= t('sessions_mailer.user_magic_link_email.body',
magic_link_url: magic_link_url(@token.to_hash)).strip %>
magic_link_url: magic_link_url(@voter_hash)).strip %>
<%= t('application_mailer.complimentary_close', recipient: Rails.configuration.x.asembleo.title).strip %>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

class RemoveTokenAndQuestionIndexFromReceipts < ActiveRecord::Migration[7.0]
def change
remove_index :receipts, name: 'index_receipts_on_token_id_and_question_id' if index_exists?(:receipts, name: 'index_receipts_on_token_id_and_question_id')
remove_index :receipts, name: 'index_receipts_on_token_id_and_question_id' if index_exists?(:receipts, %i[token_id question_id], name: 'index_receipts_on_token_id_and_question_id')
end
end

0 comments on commit e5029c0

Please sign in to comment.