We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magic_link_url
I have a multi-tenant site and need to keep the host / subdomain from the request and pass it into the magic_link_url in the mailer somehow.
I made a monkey patch but maybe there is a better way to handle this - #49
With this you can do:
resource&.send_magic_link(remember_me: create_params[:remember_me], opts: {host: request.host})
and in the mailer you can:
magic_link_url(@resource, @scope_name => {email: @resource.email, token: @token, remember_me: @remember_me}, host: @opts.dig(:opts)&.dig(:host) || Rails.application.config.action_mailer.default_url_options[:host] )
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I have a multi-tenant site and need to keep the host / subdomain from the request and pass it into the
magic_link_url
in the mailer somehow.I made a monkey patch but maybe there is a better way to handle this - #49
With this you can do:
and in the mailer you can:
The text was updated successfully, but these errors were encountered: