before_action do
if params
@user = params[:user]
end
end
around_action :with_locale_from_user
def with_locale_from_user(&block)
I18n.with_locale(current_locale, &block)
end
And then to use UserMailer.with(user: user).welcome.deliver_later?
But I agree that it would be nice to reduce this boilerplate.