Skip to content

Commit

Permalink
Fixing token mailer preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Un3x committed Dec 4, 2023
1 parent ad0c685 commit 27e7b38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/mailers/previews/api_entreprise/token_mailer_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class APIEntreprise::TokenMailerPreview < ActionMailer::Preview
expiration_notice_0J
].each do |method|
send('define_method', method) do
APIEntreprise::TokenMailer.send(method, { to:, cc:, authorization_request: })
APIEntreprise::TokenMailer.send(method, { to:, cc:, token: })
end
end

Expand All @@ -24,8 +24,8 @@ def to

def cc; end

def authorization_request
AuthorizationRequest.with_tokens_for('entreprise').first
def token
AuthorizationRequest.with_tokens_for('entreprise').first.token
end

def magic_link_record
Expand Down
6 changes: 3 additions & 3 deletions spec/mailers/previews/api_particulier/token_mailer_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class APIParticulier::TokenMailerPreview < ActionMailer::Preview
expiration_notice_0J
].each do |method|
send('define_method', method) do
APIParticulier::TokenMailer.send(method, { to:, cc:, authorization_request: })
APIParticulier::TokenMailer.send(method, { to:, cc:, token: })
end
end

Expand All @@ -24,8 +24,8 @@ def to

def cc; end

def authorization_request
AuthorizationRequest.with_tokens_for('particulier').first
def token
AuthorizationRequest.with_tokens_for('particulier').first.token
end

def magic_link_record
Expand Down

0 comments on commit 27e7b38

Please sign in to comment.