Mailer specific default_url_options #306
Replies: 3 comments 5 replies
-
This is similar and I see overlaps in how passing in options could be extended to support this |
Beta Was this translation helpful? Give feedback.
-
I also see that this override is supported in controllers https://guides.rubyonrails.org/v3.2/action_controller_overview.html#default_url_options |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion, I didn't know you can set Maybe adding class RodauthMain < Rodauth::Rails::Auth
configure do
rails_url_options RodauthMailer.default_url_options
end
end If that seems reasonable to you, feel free to send a PR 🙂 |
Beta Was this translation helpful? Give feedback.
-
Hi. As always, awesome work and thank you. Loving it so much.
Alright. So right now, we support url generation using Action mailer's
default_url_options
.rodauth-rails/lib/rodauth/rails/feature/internal_request.rb
Line 47 in 9d2daf9
This works great in general. However, we have a multi subdomain I attempted to use the rails per mailer overrides.
However, it appears from the above shared code, this always defaults to the global config.
It would be nice to have some way to pass the url options in while defaulting to the global config.
Happy to do the work if you describe how you'd like something like this, if you'd like something like this, implemented.
Beta Was this translation helpful? Give feedback.
All reactions